Bug #18447 Updated: Error-Log File is overwritten for every new Error
| From: | sniper@php.net | Date: | Sat, 20 Jul 2002 16:34:00 +0000 |
| Subject: | Bug #18447 Updated: Error-Log File is overwritten for every new Error | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-14701@lists.php.net to get a copy of this message | ||
ID: 18447
Updated by: sniper@php.net
Reported By: akorthaus@web.de
-Status: Open
+Status: Closed
Bug Type: Unknown/Other Function
Operating System: Linux
PHP Version: 4.1.2
New Comment:
I can not reproduce this with PHP 4.2.1. (CGI)
Make that filename for the log to be absolute,
e.g.:
error_log=/tmp/php-log.txt
Previous Comments:
------------------------------------------------------------------------
[2002-07-20 04:52:00] akorthaus@web.de
Hi!
I´ve run php as CGI-Version with Apache.
Because I don´t want errors to be shown on the website, I changed the
following values of php.ini:
display_errors = Off
// so no Errors are displayd anymore
log_errors = On
// Errors should be logged
error_log = log.txt
// into this file
It works fine, but there is only the last error in this log-file, old
errors are overwritten.
I think error-logs should log ALL errors. If I try from SHELL:
php script.php 2>>log.txt
it works, but I can´t open all my PHP-Scripts from SHELL and I don´t
want to use 2>> every time ;-)
rgds
Andreas Korthaus
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18447&edit=1