#47617 [Bgs]: rss feed / tag causes php script to execute twice
| From: | matthew dot scott dot day at gmail dot com | Date: | Wed, 11 Mar 2009 15:40:59 +0000 |
| Subject: | #47617 [Bgs]: rss feed / tag causes php script to execute twice | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-134611@lists.php.net to get a copy of this message | ||
ID: 47617
User updated by: matthew dot scott dot day at gmail dot com
Reported By: matthew dot scott dot day at gmail dot com
Status: Bogus
Bug Type: Scripting Engine problem
Operating System: Mac OS X 10.5.5
PHP Version: 5.2.9
New Comment:
After you realize that my bug is SEPARATE from the other bugs that have
to do with RSS feeds... Please change the status of this bug back to
open.
I have included a very small, very easily testable code snippet, and
also had 2 of my coworkers able to reproduce it on their mac os
machines. Then I went home and couldn't reproduce it on a window vista
machine.
Previous Comments:
------------------------------------------------------------------------
[2009-03-11 15:38:25] matthew dot scott dot day at gmail dot com
The only other bugs submitted for my problem, is this one:
http://bugs.php.net/bug.php?id=45444
which is part of another bug submission for some rss feed that the php
website is generating.
My bug has NOTHING TO DO WITH THAT.
Please READ before COMMENTING
------------------------------------------------------------------------
[2009-03-11 15:31:39] matthew dot scott dot day at gmail dot com
I DID search the bug database and read through each one I could find.
Please why don't YOU search through the bug database before submitting a
BOGUS comment. This has NOTHING to do with the other bugs listed. This
is a separate bug with reproducible code if you even bothered to read
it.
------------------------------------------------------------------------
[2009-03-11 13:58:45] jani@php.net
Please search the bug database BEFORE you submit yet another bogus
report about this.
------------------------------------------------------------------------
[2009-03-11 03:48:53] matthew dot scott dot day at gmail dot com
I couldn't replicate this on a windows vista machine running php 5.2.8
using internet explorer 7
------------------------------------------------------------------------
[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