Re: error_log() bug on PHP 5.4.11?

From: Date: Mon, 04 Feb 2013 05:49:47 +0000
Subject: Re: error_log() bug on PHP 5.4.11?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-320148@lists.php.net to get a copy of this message
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@webserverone.com> wrote in message news:73.47.09318.7BDE8015@pb1.pair.com... > 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. >

« previous php.general (#320148) next »