Re: Is there any 'strict' and 'warnings' like packages inside PHP ?

From: Date: Thu, 04 Nov 2004 23:57:16 +0000
Subject: Re: Is there any 'strict' and 'warnings' like packages inside PHP ?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-201241@lists.php.net to get a copy of this message
* Thus wrote Greg Donald: > On Fri, 5 Nov 2004 06:20:11 +0800, Exile <php@reborn.org> wrote: > > Is there any package like 'strict' or 'warnings' in PHP, like Perl ? > > error_reporting(E_ALL | E_STRICT); > > E_STRICT was added in PHP5. E_STRICT has a different purpose though.. it will report about things that have been deprecated. E_NOTICE is more like perls strict, which will complain that a variable is being used that hasn't been initialized. But E_NOTICE happens at runtime not at compile time. Curt -- Quoth the Raven, "Nevermore."

« previous php.general (#201241) next »