|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #38887 Displaying Notices despite E_ALL & ~E_NOTICE
Submitted: 2006-09-19 22:55 UTC Modified: 2006-09-25 07:27 UTC
From: wieza at terramail dot pl Assigned:
Status: Not a bug Package: Output Control
PHP Version: 5.1.6 OS: Fedora
Private report: No CVE-ID: None
 [2006-09-19 22:55 UTC] wieza at terramail dot pl
In php.ini I have
error_reporting = E_ALL & ~E_NOTICE

So according to php.ini manual it shouldn't display notices. Especially as in php.ini display_errors is Off and log to file is on. But when I am on my site sometimes there are displayed Notices(only notices, errors and warning are logged to file ). I wrote sometimes, because I never know wheter Notices will be displayed. I can open the same site 10 times, and sometimes there is Notice, sometimes there isn't.

I've tried to set in php.ini error_reporting others values(even 0) and the problem is still appearing.

When in php code i call error_reporting(E_ALL ^ E_NOTICE), the problem is solved and notices don't appear.

I have PHP 5.1.6 on lighttpd server.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-09-25 07:27 UTC]
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Tue Jun 06 17:03:39 2023 UTC