php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30314 php.ini documentation about E_All/E_Strict confusing.
Submitted: 2004-10-03 00:20 UTC Modified: 2004-11-28 14:23 UTC
From: empx at gmx dot de Assigned:
Status: Closed Package: Unknown/Other Function
PHP Version: 5.0.2 OS: Windows
Private report: No CVE-ID: None
 [2004-10-03 00:20 UTC] empx at gmx dot de
Description:
------------
While the online documentation says E_ALL does not include E_STRICT, (which is probably correct :), when you read the docs/examples about error-reporting in the php.ini(-dist/-recommended), you get the impression that E_ALL does include E_STRICT too.

Examples:

; E_ALL             - All errors and warnings
should get updated to something like:
; E_ALL             - All errors and warnings, except E_Strict

;   - Show all errors, except for notices and coding standards warnings
;
;error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT

If E_ALL does not include E_STRICT, then " & ~E_STRICT" shouldn't be needed here, right?

regards,
Mike


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-10-05 13:12 UTC] nlopess@php.net
The documentation is right (E_ALL doesn't include E_STRICT).

Now its up with the developers if they want to change the php.ini file or not.

Nuno
 [2004-11-28 14:23 UTC] tony2001@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 15:01:28 2024 UTC