Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:5558 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 16061 invoked by uid 1010); 19 Nov 2003 15:33:14 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 16037 invoked from network); 19 Nov 2003 15:33:14 -0000 Received: from unknown (HELO mail.zend.com) (192.117.235.230) by pb1.pair.com with SMTP; 19 Nov 2003 15:33:14 -0000 Received: (qmail 6097 invoked from network); 19 Nov 2003 15:33:13 -0000 Received: from localhost (HELO zeev-laptop.zend.com) (127.0.0.1) by localhost with SMTP; 19 Nov 2003 15:33:13 -0000 Reply-To: zeev@zend.com Message-ID: <5.1.0.14.2.20031119173149.05c50d30@localhost> X-Sender: zeev@localhost X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Wed, 19 Nov 2003 17:33:12 +0200 To: "Ferdinand Beyer" Cc: internals@lists.php.net In-Reply-To: <3FBB9849.10600.EBADF1@localhost> References: <5.1.0.14.2.20031118235848.0347c9f0@127.0.0.1> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] E_STRICT From: zeev@zend.com (Zeev Suraski) At 17:20 19/11/2003, Ferdinand Beyer wrote: >On 19 Nov 2003 at 0:00, Andi Gutmans wrote: > > > Hey, > > > > I added an E_STRICT error level today which purists can use to >make sure > > that there scripts are using the latest and greatest suggested >method of > > coding (according to what we decide). > > Ideas are things like: > > a) Not using var for member variables but moving to PPP. > > b) Not using is_a but using instanceof. > > > > If you have any further ideas of stuff which makes sense to add to >this > > option let me know. For obvious reasons this will be off by default. > > > > Andi > >What's the difference between E_NOTICE and E_STRICT then? > >It would be as easy to trigger errors like >"Notice: Use of deprecated function `is_a`; use `instanceof` instead" > >Purists who want to be sure to be coding >The PHP Way< will use >error_level = E_ALL anyway... I think we discussed this in the past, but the one (or rather, two) line summary - E_NOTICE is usable for many practical non-purist situations, such as detection of broken variable names, etc. We don't want to force people that want their code to be E_NOTICE clean to also be fully compliant with the latest PHP compatibility guidelines... Zeev