Re: display_errors stdout not working in a .htaccess file [message #170617 is a reply to message #170605] |
Wed, 10 November 2010 14:15 |
Michael Fesser
Messages: 215 Registered: September 2010
Karma:
|
Senior Member |
|
|
.oO(Thomas Mlynarczyk)
> Michael Fesser schrieb:
>>> [error_reporting]
>> -1 should do to include all.
>
> Correct. But personally I prefer the more explicit E_ALL | E_STRICT.
Same here. In my php.ini it's set like that.
> And, strictly speaking, one should not rely upon the state of the
> undocumented remaining bits which are currently not used, so it might be
> preferable to mask them out.
It's documented in two places:
| […] consider using a larger value to cover all bit fields from now and
| well into the future, a numeric value like 2147483647
And on another page:
| Passing in the value -1 will show every possible error, even when new
| levels and constants are added in future PHP versions.
So I think it's safe to make use of it if necessary, i.e. in an
..htaccess file where you can't use PHP's constants.
> Also, I find it a bit confusing/unintuitive that E_STRICT is not
> included with E_ALL.
IIRC this will be changed in PHP 6.
Micha
|
|
|