Bug #61788 [Com]: error_reporting expression sequence problem
| From: | anon at anon dot anon | Date: | Tue, 24 Apr 2012 14:35:16 +0000 |
| Subject: | Bug #61788 [Com]: error_reporting expression sequence problem | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-169917@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=61788&edit=1
ID: 61788
Comment by: anon at anon dot anon
Reported by: wangrj at infobird dot com
Summary: error_reporting expression sequence problem
Status: Not a bug
Type: Bug
Package: *Configuration Issues
Operating System: CentOS 5.4
PHP Version: 5.3.10
Block user comment: N
Private report: N
New Comment:
You misspelled E_NOTICE.
Previous Comments:
------------------------------------------------------------------------
[2012-04-21 14:31:18] laruence@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
~E-NOTICE => ~intval(E-NOTICE) => ~0 => -1
------------------------------------------------------------------------
[2012-04-20 14:51:54] wangrj at infobird dot com
error_reporting = E_ALL & ~E-NOTICE & ~E_DEPRECATED does not take effect means
still reporting notice and deprecated errors
------------------------------------------------------------------------
[2012-04-20 14:36:11] wangrj at infobird dot com
Description:
------------
the error_reporting expression in php.ini has a very strange probelm
if you want to report all types of errors info except notice and deprecated
the following expression for error_reporting does not take effect:
error_reporting = E_ALL & ~E-NOTICE & ~E_DEPRECATED
but the following is ok
error_reporting = E_ALL & ~E_DEPRECATED & ~E-NOTICE
Besides if any notice or deprecated error has generated and reported, you got
HTTP 500 error under nginx when display_error = off
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=61788&edit=1