ID: 46916 Updated by: j...@php.net Reported By: Brian dot White at foxfire74 dot com -Status: Open +Status: Bogus Bug Type: Apache2 related Operating System: Windows PHP Version: 5.2.8 New Comment:
PHP only adds PHP_EOL (in your case \r\n) to the log messages so that extra \r comes somewhere else. Previous Comments: ------------------------------------------------------------------------ [2008-12-22 00:17:09] Brian dot White at foxfire74 dot com Running as an Apache 2.2.11 module. (Windows XP SP3) Error handling and logging section from php.ini =============================================== error_reporting = E_ALL display_errors = Off display_startup_errors = Off log_errors = On log_errors_max_len = 1024 ignore_repeated_errors = Off ignore_repeated_source = Off report_memleaks = On track_errors = Off error_log = "/path-to-logs/php/error.log" Simple web page that blows up ============================= <?php ini_set('max_execution_time', 1); $i = 0; do { echo "$i\n"; sleep(1); } while ($i++ < 10); ?> Log file after accessing the above page twice ============================================= [21-Dec-2008 19:02:07] PHP Fatal error: Maximum execution time of 1 second exceeded in \path-to-test-page\46916.php on line 10 [21-Dec-2008 19:03:11] PHP Fatal error: Maximum execution time of 1 second exceeded in \path-to-test-page\46916.php on line 10 Note the extra <CR>s. ------------------------------------------------------------------------ [2008-12-21 12:59:24] j...@php.net Please show the code you use to log. ------------------------------------------------------------------------ [2008-12-21 02:24:42] Brian dot White at foxfire74 dot com Description: ------------ Since the upgrade to 5.2.7/5.2.8 lines in the log file are terminated with "\r\r\n" rather than "\r\n". I am logging to a separate log file, not to the Apache error log; however the error seems not to occur when logging from the CLI, only from the SAPI module. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=46916&edit=1