Bug #54565 [Opn->Csd]: E_STRICT errors shown even if display_errors is off

[email protected]
Newsgroups php.bugs
Message-ID <[email protected]>
Edit report at https://bugs.php.net/bug.php?id=54565&edit=1

 ID:                 54565
 Updated by:         [email protected]
 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.