Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45393 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 42858 invoked from network); 25 Aug 2009 12:52:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Aug 2009 12:52:58 -0000 Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 82.94.239.7 as permitted sender) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.94.239.7 mail.jdi.nl Received: from [82.94.239.7] ([82.94.239.7:47713] helo=mail.jdi-ict.nl) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CA/34-22580-AAED39A4 for ; Tue, 25 Aug 2009 08:52:58 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.jdi-ict.nl (8.13.7/8.12.11) with ESMTP id n7PCqm46004431; Tue, 25 Aug 2009 14:52:48 +0200 X-Virus-Scanned: by amavisd-new at jdi-ict.nl Received: from localhost (localhost [127.0.0.1]) by jdi.jdi-ict.nl (8.13.7/8.12.11) with ESMTP id n7PCqho2004407; Tue, 25 Aug 2009 14:52:44 +0200 Date: Tue, 25 Aug 2009 13:52:43 +0100 (BST) X-X-Sender: derick@kossu.ez.no To: Rasmus Lerdorf cc: Lukas Kahwe Smith , Stanislav Malyshev , jani.taskinen@iki.fi, Ilia Alshanetsky , "'PHP Internals'" In-Reply-To: <4A930D54.6050705@lerdorf.com> Message-ID: References: <4A92D936.2010107@zend.com> <9E8BD3A3-8915-4492-88A9-7EA1A0CF6D86@prohost.org> <4A92DC60.2050606@zend.com> <4A92EA60.6020605@zend.com> <4A92F13B.9000204@zend.com> <4A92FFA8.1060401@zend.com> <4A9304FC.2000906@sci.fi> <4A930956.9070709@zend.com> <250F0E93-D6F2-490F-9129-598AC6E96500@pooteeweet.org> <4A930D54.6050705@lerdorf.com> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2 (jdi.jdi-ict.nl [127.0.0.1]); Tue, 25 Aug 2009 14:52:45 +0200 (CEST) Subject: Re: [PHP-DEV] [patch] error masks From: derick@php.net (Derick Rethans) On Mon, 24 Aug 2009, Rasmus Lerdorf wrote: > Lukas Kahwe Smith wrote: > > > > anyways to me both E_STRICT and E_DEPRECATED are development tools that > > can be totally ignored in production. however E_NOTICE should not occur > > in production and we shouldnt encourage people to make them disappear > > entirely. > > Lukas, the problem is that all messages, E_STRICT, E_DEPRECATED, > E_NOTICE, whatever, all cause a performance hit even if the > error_reporting level is such that they will never show up anywhere. > That's what this patch is trying to address. To write optimal code, > they have to be entirely clean of all messages including E_DEPRECATED > and E_STRICT. And how exactly is that a problem? Sure, there are some cases where PHP functions are too noisy, but that should be addressed instead. regards, Derick -- http://derickrethans.nl | http://ezcomponents.org | http://xdebug.org twitter: @derickr