From: dmda at yandex dot ru Operating system: Windows XP sp3 PHP version: 5.3.0RC3 PHP Bug Type: Scripting Engine problem Bug description: display_errors=off setting won't stop some errors
Description: ------------ display_errors=off setting won't stop some errors from appearing in the output. Any errors thrown by modules at the initialization phase shoud be accumulated somewhere, not passed to the output directly. In partcilar, if you have an error in php.ini, display_errors=OFF won't have any effect. Reproduce code: --------------- php.ini: ======================================= error_reporting=E_ALL | E_DEPRECATED error_log="D:\php-5.3RC3-Win32\php.log" log_errors=On display_errors=Off #something ;a comment ======================================= command line: ======================================= php-cgi.exe -i >somefile.html ======================================= Expected result: ---------------- nothing in the output Actual result: -------------- 2 errors appeared on screen: PHP Deprecated: Comments starting with '#' are deprecated in D:\php-5.3RC3-Win32\php.ini on line 5 in Unknown on line 0 PHP Warning: Unknown: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any o f those methods and you are still getting this warning, you most likely misspelled the timezone iden tifier. We selected 'Europe/Moscow' for '4.0/DST' instead in Unknown on line 0 -- Edit bug report at http://bugs.php.net/?id=48583&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48583&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48583&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48583&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=48583&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48583&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=48583&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=48583&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=48583&r=needscript Try newer version: http://bugs.php.net/fix.php?id=48583&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=48583&r=support Expected behavior: http://bugs.php.net/fix.php?id=48583&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=48583&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=48583&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=48583&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48583&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=48583&r=dst IIS Stability: http://bugs.php.net/fix.php?id=48583&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=48583&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=48583&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=48583&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=48583&r=mysqlcfg