|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #76389 Documentation to clarify error_reporting levels
Submitted: 2018-05-29 12:49 UTC Modified: 2018-05-29 13:00 UTC
From: luisdv at icon dot co dot za Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS: All
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
49 + 24 = ?
Subscribe to this entry?

 [2018-05-29 12:49 UTC] luisdv at icon dot co dot za
From manual page:

The above error-reporting article describes these two reporting levels:

// Report all PHP errors (see changelog)

// Report all PHP errors

What is the difference between the two? When would you use one instead of the other?

Please update the article with a clear explanation of the differences and an example of the correct use cases for each level.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2018-05-29 13:00 UTC]
-Status: Open +Status: Not a bug
 [2018-05-29 13:00 UTC]
The difference is what E_ALL reports on different versions of PHP which is defined in the changelog.

It used to report all errors but strict. Nowadays -1 and E_ALL are the same.
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sun Sep 20 18:01:26 2020 UTC