ID: 47617
Comment by: matthew dot scott dot day at gmail dot com
Reported By: matthew dot scott dot day at gmail dot com
Status: Open
Bug Type: Scripting Engine problem
Operating System: Mac OS X 10.5.5
PHP Version: 5.2.9
New Comment:
I couldn't replicate this on a windows vista machine running php 5.2.8
using internet explorer 7
Previous Comments:
------------------------------------------------------------------------
[2009-03-10 22:56:45] matthew dot scott dot day at gmail dot com
Description:
------------
While outputting rss tags directly to the browser, the php script
executes twice.
Reproduce code:
---------------
<?php
header("Content-type: application/xhtml+xml");
?>
<rss version="2.0">
<SomeData>some stuff here</SomeData>
</rss>
<?php
$fname = '/tmp/'.microtime().'.txt';
file_put_contents($fname, "2 files will be created when you run this
code once");
?>
Expected result:
----------------
I expect only 1 file to be created in /tmp/
Actual result:
--------------
2 files are created in /tmp/
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=47617&edit=1