|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #54565 E_STRICT errors shown even if display_errors is off
Submitted: 2011-04-18 23:45 UTC Modified: 2017-03-27 20:42 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: matteosistisette at gmail dot com Assigned: tpunt (profile)
Status: Closed Package: Unknown/Other Function
PHP Version: 5.3.6 OS:
Private report: No CVE-ID: None
 [2011-04-18 23:45 UTC] matteosistisette at gmail dot com
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?


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2017-03-27 20:42 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: tpunt
 [2017-03-27 20:42 UTC]
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.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Jul 16 03:01:27 2024 UTC