From: Operating system: Linux PHP version: 5.3.2 Package: PHP options/info functions Bug Type: Bug Bug description:Unable to turn off E_NOTICE errors
Description: ------------ I recently migrated to PHP 5.3.2, and realized that I am unable to turn off notice errors in my site now. I went to php.ini, and in these lines: Code: ; Common Values: ; E_ALL & ~E_NOTICE (Show all errors, except for notices and coding standards warnings.) ; E_ALL & ~E_NOTICE | E_STRICT (Show all errors, except for notices) ; E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR (Show only errors) ; E_ALL | E_STRICT (Show all errors, warnings and notices including coding standards.) ; Default Value: E_ALL & ~E_NOTICE ; Development Value: E_ALL | E_STRICT ; Production Value: E_ALL & ~E_DEPRECATED ; http://php.net/error-reporting error_reporting = E_ALL & ~E_NOTICE ...I've tried setting every combination (and I restart apache each time), but I am unable to get rid of notices. The only way I'm able to get rid of notice errors is by setting : Code: display_errors = Off That is, of course, not something I can do since I need to see errors to fix them, and I would like to see errors on the webpage that I am coding rather than log them somewhere. I am not using the error_reporting function in my code, so there is no question of over-writing. Plus, I am editing the proper php.ini file. -- Edit bug report at http://bugs.php.net/bug.php?id=51652&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=51652&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=51652&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=51652&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=51652&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=51652&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=51652&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=51652&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=51652&r=needscript Try newer version: http://bugs.php.net/fix.php?id=51652&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=51652&r=support Expected behavior: http://bugs.php.net/fix.php?id=51652&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=51652&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=51652&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=51652&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=51652&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=51652&r=dst IIS Stability: http://bugs.php.net/fix.php?id=51652&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=51652&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=51652&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=51652&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=51652&r=mysqlcfg