ID:               45381
 Updated by:       [EMAIL PROTECTED]
 Reported By:      evan dot kaufman at gmail dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Unknown/Other Function
 Operating System: All
 PHP Version:      5.2.6
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

This is because you set the background image to an empty url(), which
results in the same page being called. 


Previous Comments:
------------------------------------------------------------------------

[2008-06-27 18:49:52] evan dot kaufman at gmail dot com

Description:
------------
Calls to error_log() are made, and certain output is echoed to the
client.  When script execution halts, all the previous calls to
error_log() are apparently executed again, all at once and in the same
order.  This effectively results in doubling all logged messages.

I have reproduced this in Mac OS X 10.5.3 running a MAMP distribution
with PHP 5.2.5, in Ubuntu 8.04 running Zend Core with PHP 5.2.5, and in
SunOS 5.8 running Apache2 with PHP 5.2.3.

Curiously, this only occurs with a content type of text/html, and
apparently has something to do with the javascript.


Reproduce code:
---------------
<?php

error_log('some log message that, via a bug, will be logged twice');

echo <<<HTMLCODE
<html>
<body>
<script type="text/javascript" charset="utf-8">
document.body.style.backgroundImage = 'url()';
</script>
</body>
</html>
HTMLCODE;


Expected result:
----------------
Should print out some html with embedded javascript, and write a single
entry to the apache error_log file:

[Fri Jun 27 13:28:36 2008] [error] some log message that, via a bug,
will be logged twice


Actual result:
--------------
Prints out the html/javascript as expected, but writes TWO entries to
the apache error_log file:

[Fri Jun 27 13:28:36 2008] [error] some log message that, via a bug,
will be logged twice
[Fri Jun 27 13:28:36 2008] [error] some log message that, via a bug,
will be logged twice



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=45381&edit=1

Reply via email to