Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45391 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 32341 invoked from network); 25 Aug 2009 12:36:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Aug 2009 12:36:16 -0000 Authentication-Results: pb1.pair.com smtp.mail=ilia@prohost.org; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=ilia@prohost.org; sender-id=unknown Received-SPF: error (pb1.pair.com: domain prohost.org from 209.85.132.242 cause and error) X-PHP-List-Original-Sender: ilia@prohost.org X-Host-Fingerprint: 209.85.132.242 an-out-0708.google.com Received: from [209.85.132.242] ([209.85.132.242:46136] helo=an-out-0708.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 62/D1-22580-FBAD39A4 for ; Tue, 25 Aug 2009 08:36:16 -0400 Received: by an-out-0708.google.com with SMTP id d14so1127453and.38 for ; Tue, 25 Aug 2009 05:36:13 -0700 (PDT) Received: by 10.101.88.14 with SMTP id q14mr5999728anl.38.1251203773312; Tue, 25 Aug 2009 05:36:13 -0700 (PDT) Received: from ?192.168.1.169? (TOROON63-1176059019.sdsl.bell.ca [70.25.60.139]) by mx.google.com with ESMTPS id 1sm2879688agb.48.2009.08.25.05.36.11 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 25 Aug 2009 05:36:12 -0700 (PDT) Cc: Greg Beaver , 'PHP Internals' Message-ID: To: Stanislav Malyshev In-Reply-To: <4A938706.8060600@zend.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Date: Tue, 25 Aug 2009 08:36:07 -0400 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> X-Mailer: Apple Mail (2.936) Subject: Re: [PHP-DEV] Re: [patch] error masks From: ilia@prohost.org (Ilia Alshanetsky) On 25-Aug-09, at 2:39 AM, Stanislav Malyshev wrote: > Hi! > >> If you enable error log you would be able to identify errors, even >> in legacy code fairly quickly and address them as needed. The speed >> increase, by Stas' own admission is very minimal here, I would wager > > It's not "very minimal". It's not big overall, but it speeds up > operations affected 300-400%. Can you propose many other changes > that would speed up any set of opcodes 300% in 10 lines of patch? ;) I have a few of those in our custom build of PHP, but none of those would be ready for general consumption since they take away some of PHP's conveniences. There are not many such changes, but a fair number are possible. >> saving memory and eliminating what effectively is a NOOP is a good >> idea, making it a configurable, user settable option, will simply >> lead to much abuse. > > There would be no "abuse" that is not happening today, in almost > every production install on Earth. Through the whole scenario you > have consistently ignored the fact that we talk about errors that > are *ignored* today, and only evidence of their general existence > somewhere in the code is the slowdown - which is not measurable > anyway, since there's no base for comparison, since there's no way > to run _without_ the slowdown without this patch. You had one really good example from Dan, with respect to track_errors, which is real easy to miss. The 3rd party library maybe using that functionality to handle certain errors and by doing a global ingore errors, you would effectively cut down on error information and in some cases make the code thing there is no error. There are a few code paths I can see on google where code works something like this: $php_errormsg = null; some_function(); if ($php_errormsg) { exit($php_errormsg); }