Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67333 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63246 invoked from network); 7 May 2013 16:09:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 May 2013 16:09:04 -0000 Authentication-Results: pb1.pair.com smtp.mail=zelnaga@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=zelnaga@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.180 as permitted sender) X-PHP-List-Original-Sender: zelnaga@gmail.com X-Host-Fingerprint: 209.85.212.180 mail-wi0-f180.google.com Received: from [209.85.212.180] ([209.85.212.180:57614] helo=mail-wi0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AC/B1-54258-F1729815 for ; Tue, 07 May 2013 12:09:04 -0400 Received: by mail-wi0-f180.google.com with SMTP id h11so837092wiv.1 for ; Tue, 07 May 2013 09:09:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=yoUgufYOyzBRlYlRnFcQdRsfe/sPMQjrDqEA6xiNiTc=; b=ToWErc7B4twCrFLNGolslUtDRBnfTCmRzecERghHNRv7pNtqgQuipLH8SkaphvT/lg YOCBO1qn+GDanINZ1VSh/Au9eR9bctS7qA+JaoeSIu6Lrs+R3TZfgNXmi+AgLBKtWWI5 ms75JbTtZ9Y2RV9LQ5uxrkvnorN2UjiD7vsHoCDhfehrS0Q0AMH/5AmTRI5dm/k+yPWd scRsrrT7ieC5jk3pXlMqpNOIy1Gycj/wUZ09N95K21h5qjM0YYNhRiZPJHC6Fo6QbYrn /nQ6VX5maWeKP/WsNdhXkhUQoYaLyNDLxwnNB7Jel2rFxRv7LdBsOVihnlpsKRE9BDOH efmA== MIME-Version: 1.0 X-Received: by 10.180.185.114 with SMTP id fb18mr15782929wic.33.1367942941517; Tue, 07 May 2013 09:09:01 -0700 (PDT) Received: by 10.194.77.48 with HTTP; Tue, 7 May 2013 09:09:01 -0700 (PDT) Date: Tue, 7 May 2013 11:09:01 -0500 Message-ID: To: PHP internals Content-Type: multipart/alternative; boundary=001a11c343da1a2c4904dc2309dc Subject: idea: letting the line number and file name be set via user_error From: zelnaga@gmail.com (Thomas Anderson) --001a11c343da1a2c4904dc2309dc Content-Type: text/plain; charset=ISO-8859-1 If you do user_error('whatever') it'll show, as the line number for that error, the line number on which that user_error() call is made. It'd be nice if you could control the line number and file name that was displayed. eg. That'll say "Notice: whatever in ... on line 4" (ie. the line that the user_error is on) instead of "Notice: whatever in ... on line 7" (ie. the line that the call to the test() function is made). If the displayed line numbers could be controlled by user_error then debug_backtrace could be used to get the desired line number / file name to display. --001a11c343da1a2c4904dc2309dc--