Re: E_ALL | E_STRICT

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

 



Ligaya Turmelle wrote:
> tedd wrote:
>>>>
>>>> - tul
>>>>
>>>> P.S. isn't error_reporting( FATAL | ERROR | WARNING ); supposed to
>>>> be error_reporting( E_FATAL | E_ERROR | E_WARNING ); ??
>>
>>
>>
>> Good catch.
>>
>> I'm not sure where I got that -- probably a message from some flounder
>> (Bullwinkle circa 1964).
>>
>> In my newer scripts I use:
>>
>> ini_set('error_reporting', E_ALL | E_STRICT);
>>
>> However, I'm not sure if that's redundant.
>>
>> tedd
> It isn't redundant :) - E_STRICT isn't covered under E_ALL in PHP5 IIRC.

correct.

E_STRICT is supposed to be used *only* to flag not recommended code (i.e. a pedantic mode)
unfortunately use of E_STRICT has been 'abused' in cases where E_DEPRECIATED should have
been used (i.e. for code that will stop working in the future rather than for code which
the developers think is not proper)

of course it doesn't help that there is no such thing as 'E_DEPRECIATED' (yet?)

> 

-- 
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