php.net |  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
Votes:1
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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: matteosistisette at gmail dot com
New email:
PHP Version: OS:

 

 [2011-04-18 23:45 UTC] 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?


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-03-27 20:42 UTC] tpunt@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: tpunt
 [2017-03-27 20:42 UTC] tpunt@php.net
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 Apr 16 18:01:30 2024 UTC