Re: error_log() bug on PHP 5.4.11?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The culprit was Chrome's HTML Validator extension. It triggered an 
additional request for the page doing the logging therefore resulting in 
logging of two identical entries. Once I disabled the extension the problem 
went away.

Sorry for the false alarm.

J.S.

""J.S."" <hl@xxxxxxxxxxxxxxxx> wrote in message 
news:73.47.09318.7BDE8015@xxxxxxxxxxxx...
> Hi,
>
> When I call error_log() to log a message to the log file, I end up with 
> duplicate entries. Here is a minimal test script which reproduces the 
> problem for me:
>
> <?php
> ini_set('error_log', 'C:\Apache2\htdocs\myapp\app\logs\error_log');
> error_log('some log message that, via a bug, will be logged twice');
> ?>
>
> will log:
>
> [30-Jan-2013 09:41:13 UTC] some log message that, via a bug, will be 
> logged twice
> [30-Jan-2013 09:41:13 UTC] some log message that, via a bug, will be 
> logged twice
>
> If it matters, I am running the VC9 x86 Thread Safe build of PHP 5.4.11 on 
> a Windows XP box but I had seen this problem in PHP 5.3.6 as well. I am 
> running Apache 2.2 for Web server.
>
> Can somebody confirm whether this is a bug? I checked the bug database on 
> php.net but did not find anything relevant.
>
> Best regards
>
> J.S.
> 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux