* Thus wrote Greg Donald: > On Fri, 5 Nov 2004 06:20:11 +0800, Exile <php@xxxxxxxxxx> 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." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php