Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45414 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 90870 invoked from network); 26 Aug 2009 16:47:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Aug 2009 16:47:44 -0000 Authentication-Results: pb1.pair.com smtp.mail=hannes.magnusson@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=hannes.magnusson@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.212 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: hannes.magnusson@gmail.com X-Host-Fingerprint: 209.85.220.212 mail-fx0-f212.google.com Received: from [209.85.220.212] ([209.85.220.212:63901] helo=mail-fx0-f212.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 70/63-21292-F27659A4 for ; Wed, 26 Aug 2009 12:47:43 -0400 Received: by fxm8 with SMTP id 8so275039fxm.23 for ; Wed, 26 Aug 2009 09:47:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=BeOjThHZqER05inRw8IJu7tJ7+2yPbp+i2naxa/MJIE=; b=trw+qhqZ5zSbW8bACvEblQgU4Rcv13AVNuzmm22m1HSBTzwdI/Z//kOvbXwLqpFq2d r+FjZXJyB16xq+STBF8zieEqeeoDJrkZ8SJu6CGxYjRUTfnIw2c30KEzXRrrlAvDIt0H /C5MYoI7xOH3mmzkRX1XI9MNE7Jh5UVcPeZ/U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=WHRQiHkSYT8W9Fwy5iqF1wxmB2h01X8/zYgTzC8JZ9cUyhn0QZQ+o5l2mUgyuOzRRR pgdbe91sGpIazENqW4LXRcIPRVhrVyDmUqAI1hIMkAySynRVktJANAn42N+Wuk34eUtb wV27fiAIdVpCiYOmmys5yOnoY6sq1VqZU0tj8= MIME-Version: 1.0 Received: by 10.204.34.69 with SMTP id k5mr3805276bkd.2.1251305260306; Wed, 26 Aug 2009 09:47:40 -0700 (PDT) In-Reply-To: <4A954C42.1080705@chiaraquartet.net> References: <4A92D936.2010107@zend.com> <4A931A1C.804@chiaraquartet.net> <39F20BFC-DAA0-4403-A52E-62CE5F4CF0FE@prohost.org> <4A9346CA.3070608@chiaraquartet.net> <4B0E7BED-C2AE-4BE5-B6CA-00B810168961@prohost.org> <4A938706.8060600@zend.com> <4A941315.9070300@zend.com> <4A954C42.1080705@chiaraquartet.net> Date: Wed, 26 Aug 2009 18:47:40 +0200 Message-ID: <7f3ed2c30908260947y105e00d5h9a3c2d2545835245@mail.gmail.com> To: Greg Beaver Cc: Derick Rethans , Stanislav Malyshev , PHP Internals Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] Re: [patch] error masks From: hannes.magnusson@gmail.com (Hannes Magnusson) On Wed, Aug 26, 2009 at 16:52, Greg Beaver wrote: > performance hit when an error is completely hidden either by > error_reporting or by @ (i.e. no track_errors, no user error handler, no > other things that would expect to see the errors). =A0That's all that error_get_last()... You can't know, at the time the error should be raised, if something later in the script wants to retrieve that error. The only thing we can do, if we don't want to break scripts that gracefully deal with errors, is to store the last "raw" errormsg, errormsg arguments, caller, file, line.. and then if the message will get used later then generate the pretty error messages "on demand". "can do" is used very loosely there, as I don't think it can sanely be implemented :) The irony of this all is track_errors=3Doff did exactly what we want, boycott the formatting routines when nothing wants to use the results, but after the introduction of error_get_last() (5.2.0) that ini option is useless as the formatting routines are always executed now :) -Hannes