Doc #76389 [Opn->Nab]: Documentation to clarify error_reporting levels

From: Date: Tue, 29 May 2018 13:00:28 +0000
Subject: Doc #76389 [Opn->Nab]: Documentation to clarify error_reporting levels
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-15725@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=76389&edit=1 ID: 76389 Updated by: peehaa@php.net Reported by: luisdv at icon dot co dot za Summary: Documentation to clarify error_reporting levels -Status: Open +Status: Not a bug Type: Documentation Problem Package: Documentation problem Operating System: All PHP Version: Irrelevant Block user comment: N Private report: N New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2018-05-29 12:49:54] luisdv at icon dot co dot za Description: ------------ --- From manual page: http://www.php.net/function.error-reporting --- The above error-reporting article describes these two reporting levels: // Report all PHP errors (see changelog) error_reporting(E_ALL); // Report all PHP errors error_reporting(-1); 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. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=76389&edit=1

« previous php.doc.bugs (#15725) next »