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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* 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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux