FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » display_errors stdout not working in a .htaccess file
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: display_errors stdout not working in a .htaccess file [message #170617 is a reply to message #170605] Wed, 10 November 2010 14:15 Go to previous messageGo to previous message
Michael Fesser is currently offline  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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: freelancer looking for web-development projects
Next Topic: ANNOUNCE: NHI1-0.9, PLMK-1.7 und libmsgque-4.7
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 19:21:09 GMT 2024

Total time taken to generate the page: 0.03982 seconds