From: [EMAIL PROTECTED]
Operating system: RedHat 7.2 2.4.9 kernel
PHP version: 4.2.1
PHP Bug Type: PHP options/info functions
Bug description: ini_set('display_errors',1) does not display parse errors
When display_errors is set to off in the php.ini file and I turn it back on
with ini_set. it displays fatal errors like missing functions, but not
parse errors like missing quotes.
from php.ini file:
error_reporting = E_ALL & ~E_NOTICE
display_errors = Off
display_startup_errors = Off
log_errors = On
error_log = "/tmp/php.log"
Test Script:
<?php
ini_set('display_errors',1);
# echo "dfadf"asdf;
# missingfunction();
phpinfo(4);
?>
Run the script as is and the variables in phpinfo all look a-ok,
display_errors is set to "On" locally.
Uncomment the echo line and it logs the error to the file but does not
display the error. The kind of error is a parse error.
Now try the missingfunciton line, it logs the error to the file and
displays the error to the screen, the desired action. The kind of error is
a fatal error.
Confiure for my PHP is:
--with-apache=xxx
--with-mysql \
--enable-inline-optimization \
--with-pspell \
--with-gd \
--with-jpeg \
--with-jpeg-dir=/usr/lib \
--with-png \
--with-png-dir=/usr/lib \
--with-zlib
--
Edit bug report at http://bugs.php.net/?id=17371&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=17371&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=17371&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=17371&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=17371&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17371&r=support
Expected behavior: http://bugs.php.net/fix.php?id=17371&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=17371&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=17371&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=17371&r=globals