|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33762 Setting error_reporting doesn't turn off strict warning messages
Submitted: 2005-07-19 05:38 UTC Modified: 2005-07-19 21:34 UTC
From: russell at flora dot ca Assigned:
Status: Not a bug Package: *Configuration Issues
PHP Version: 5.0.4 OS: 2.6.12-1.1398_FC4 Linux
Private report: No CVE-ID: None
 [2005-07-19 05:38 UTC] russell at flora dot ca
I know this has been said to not be a bug, and many bug reports have been ignored, but I have tried everything suggested.  This is the right php.ini file, and I am modifying the ini file and not some other way to set variables that might happen at run-time.

I have gone so far as to set:

error_reporting = 0

in my php.ini.

I can then go to phpinfo() and it displays as I would expect:

Directive	Local Value	Master Value
error_reporting	0	0

Error warnings are still coming out on the output of the pages, even though 

display_errors	Off	Off

Example errors from: (I may be forced to downgrade PHP to fix this problem.  PHP5 isn't useable for me until this problem is fixed.  phpinfo() is at )

strict warning: Assigning the return value of new by reference is deprecated in /home/ on line 335.

strict warning: var: Deprecated. Please use the public/private/protected modifiers in /home/ on line 27.

strict warning: var: Deprecated. Please use the public/private/protected modifiers in /home/ on line 28.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-07-19 10:06 UTC]
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.

 [2005-07-19 14:40 UTC] russell at flora dot ca
I am running the RPM that comes with Fedora Core 4 updates, which is the latest you list.  (Their version information is php-5.0.4-10.3).

PHP Version 5.0.4
 [2005-07-19 21:34 UTC]
What we mean with latest is something build from the source WE provide, not some heavily patched RH binary.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 09:01:27 2024 UTC