ID: 17371
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
-Status: Open
+Status: Bogus
Bug Type: PHP options/info functions
Operating System: RedHat 7.2 2.4.9 kernel
PHP Version: 4.2.1
New Comment:
your scripts are parsed *before* execution,
so the parse error occures before your
ini_set() call is executed and takes effect,
and ini_set() will never be called as a script
with parse errors in it will not be executed
Previous Comments:
------------------------------------------------------------------------
[2002-05-22 17:44:14] [EMAIL PROTECTED]
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 this bug report at http://bugs.php.net/?id=17371&edit=1