From: jeff at jeffweinberger dot com Operating system: Mac OS/X 10.5.7 client version PHP version: 5.3.0 PHP Bug Type: PHP options/info functions Bug description: Can't seem to stop Deprecated messages in php.log
Description: ------------ I am getting large numbers of "PHP Deprecated..." messages in my php.log file (I expect this, based on some not-yet-updated code). Until I update all my PHP code, I want to shut off these messages (they are causing the log file to exceed several GB). I have tried all of the following in php.ini: error_reporting = E_ALL & ~E_DEPRECATED & E_ERROR & E_WARNING & E_PARSE & E_NOTICE & E_CORE_ERROR & E_USER_ERROR & E_USER_WARNING & E_USER_NOTICE & E_COMPILE_ERROR & E_COMPILE_WARNING error_reporting = ~E_DEPRECATED & E_ALL & E_ERROR & E_WARNING & E_PARSE & E_NOTICE & E_CORE_ERROR & E_USER_ERROR & E_USER_WARNING & E_USER_NOTICE & E_COMPILE_ERROR & E_COMPILE_WARNING error_reporting = E_ALL & E_ERROR & E_WARNING & E_PARSE & E_NOTICE & E_CORE_ERROR & E_USER_ERROR & E_USER_WARNING & E_USER_NOTICE & E_COMPILE_ERROR & E_COMPILE_WARNING & ~E_DEPRECATED error_reporting = E_ERROR & E_CORE_ERROR & E_USER_ERROR & E_COMPILE_ERROR & E_COMPILE_WARNING & ~E_DEPRECATED error_reporting = ~E_DEPRECATED & E_ERROR & E_CORE_ERROR & E_USER_ERROR & E_COMPILE_ERROR & E_COMPILE_WARNING error_reporting = E_ALL & ~E_DEPRECATED error_reporting = 24575 error_reporting = 3 and after each change, I restart Apache (PHP is running as a CGI with Apache 2.2.11) and PHP. in my php_info() display, the error_reporting value shows the correct value for the then-active line (above), but the log entries still appear. I have tried the suggestions of several on the PHP-General mailing list to no avail. Please let me know if there is additional information that will help. Expected result: ---------------- "PHP Deprecated..." messages no longer appear in php.log Actual result: -------------- "PHP Deprecated..." messages still appear in large numbers php.log -- Edit bug report at http://bugs.php.net/?id=48843&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48843&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48843&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48843&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=48843&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48843&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=48843&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=48843&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=48843&r=needscript Try newer version: http://bugs.php.net/fix.php?id=48843&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=48843&r=support Expected behavior: http://bugs.php.net/fix.php?id=48843&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=48843&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=48843&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=48843&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48843&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=48843&r=dst IIS Stability: http://bugs.php.net/fix.php?id=48843&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=48843&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=48843&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=48843&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=48843&r=mysqlcfg