Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67359 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 9469 invoked from network); 7 May 2013 20:22:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 May 2013 20:22:03 -0000 Authentication-Results: pb1.pair.com header.from=zelnaga@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=zelnaga@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.177 as permitted sender) X-PHP-List-Original-Sender: zelnaga@gmail.com X-Host-Fingerprint: 74.125.82.177 mail-we0-f177.google.com Received: from [74.125.82.177] ([74.125.82.177:55974] helo=mail-we0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 45/87-06696-A6269815 for ; Tue, 07 May 2013 16:22:03 -0400 Received: by mail-we0-f177.google.com with SMTP id q58so960595wes.8 for ; Tue, 07 May 2013 13:22:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=Sg7+/+WduNGkdfY1d1Mg4o1KFhFL0t3E0uFyqSpbnP0=; b=0eereKEzUNxtqQAW87m4VopEhOdcYL/LdEqIgC6n24fvBEdZHGk9OEWRTHRZjKpTAA 1iVma3kk9/IDKiRG6qqpRjmHxJBrq+uIKxbcC48Rf7tOTIF4mzjI7LAnmbTb8rS13oqP CKIzN/O5XU1JyTeBTurUj6r7nSLNXasMDMiQB6C0O3o15/GhJffSrsULDJir1ZOcOfAq x0SHeVSCRXyuM8MF8i1hhnMdq29cHgOqk/kdIaAtoXxwEw+U6Y13G8FFVAeuYDYMXGjh kSiHNAqosQ9++Y+Ms6/+KFqI53VjSSLJdnSC27d97VMXiySn1p5DPOSnSohQWM0bi/kC l0ig== MIME-Version: 1.0 X-Received: by 10.194.71.103 with SMTP id t7mr5920957wju.38.1367958109394; Tue, 07 May 2013 13:21:49 -0700 (PDT) Received: by 10.194.77.48 with HTTP; Tue, 7 May 2013 13:21:49 -0700 (PDT) In-Reply-To: <51896088.4070907@sugarcrm.com> References: <51896088.4070907@sugarcrm.com> Date: Tue, 7 May 2013 15:21:49 -0500 Message-ID: To: Stas Malyshev Cc: PHP internals Content-Type: multipart/alternative; boundary=047d7bd917602d9d6204dc269143 Subject: Re: [PHP-DEV] idea: letting the line number and file name be set via user_error From: zelnaga@gmail.com (Thomas Anderson) --047d7bd917602d9d6204dc269143 Content-Type: text/plain; charset=ISO-8859-1 On Tue, May 7, 2013 at 3:14 PM, Stas Malyshev wrote: > Hi! > > > 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. > > If you need additional information to accompany the error, why not add > it to the "whatever" string? This way you can control whatever is > displayed. > > So the error messages your library produces have the same consistent look and feel to them that PHP's errors do? Besides, keeping in mind the KISS "keep it simple stupid" principal gratuitous information should probably be hidden away. I mean if it's not going to help anyone then the only thing left for it to do is potentially confuse people. And why risk that? --047d7bd917602d9d6204dc269143--