At 18:24 28-10-2002, Marcus Börger wrote:
I don't get it - display_errors=on works independantly from log_errors.Second i did another commit to direct logs to stderr so the errors are shown in the output. So i do not see any problem here.
Why do we need logs?
[EMAIL PROTECTED] ~
$ /phpcvs/bin/php -f test.php
===> Log errors on
[28-Oct-2002 18:48:21] PHP Notice: Undefined variable: foo in /home/msopacua/test.php on line 7
Notice: Undefined variable: foo in /home/msopacua/test.php on line 7
/home/msopacua/test.php(7) : Notice - Undefined variable: foo
===> Log errors off
Notice: Undefined variable: foo in /home/msopacua/test.php on line 10
/home/msopacua/test.php(10) : Notice - Undefined variable: foo
[EMAIL PROTECTED] ~
$ cat test.php
<?php
error_reporting(E_ALL);
ini_set('display_errors', TRUE);
ini_set('error_log', '/dev/stderr');
echo "===> Log errors on\n\n";
ini_set('log_errors', TRUE);
echo $foo;
ini_set('log_errors', FALSE);
echo "===> Log errors off\n\n";
echo $foo;
?>
Met vriendelijke groeten / With kind regards,
Webmaster IDG.nl
Melvyn Sopacua
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php