Bug #54565 [Opn->Csd]: E_STRICT errors shown even if display_errors is off
| From: | tpunt@php.net | Date: | Mon, 27 Mar 2017 20:42:30 +0000 |
| Subject: | Bug #54565 [Opn->Csd]: E_STRICT errors shown even if display_errors is off | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-208098@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=54565&edit=1
ID: 54565
Updated by: tpunt@php.net
Reported by: matteosistisette at gmail dot com
Summary: E_STRICT errors shown even if display_errors is off
-Status: Open
+Status: Closed
Type: Bug
Package: Unknown/Other Function
PHP Version: 5.3.6
-Assigned To:
+Assigned To: tpunt
Block user comment: N
Private report: N
New Comment:
I am closing this since E_STRICT no longer exists in PHP 7.x and only security-related fixes are
targeting PHP 5.6 now.
Previous Comments:
------------------------------------------------------------------------
[2011-04-18 23:45:08] matteosistisette at gmail dot com
Description:
------------
If you set error_reporting to E_ALL | E_STRICT through php.ini and set display_errors to false
through .htaccess, no errors should be displayed at all, regardless of the error_reporting setting.
Instead, e_strict warnings are still shown.
Note that I am not disabling display_errors at runtime (that would be expected behavior since most
e_strict errors are generated at compile time): I am disabling display_error with .htaccess.
The workaround is to exclude E_STRICT from error reporting but what if one wants them to be reported
(e.g. logged) but not displayed?
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=54565&edit=1