#48271 [Opn->Bgs]: fopen creates two files
| From: | jani@php.net | Date: | Fri, 15 May 2009 00:29:09 +0000 |
| Subject: | #48271 [Opn->Bgs]: fopen creates two files | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-137350@lists.php.net to get a copy of this message | ||
ID: 48271
Updated by: jani@php.net
Reported By: my dot email dot subscriptions at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: Filesystem function related
Operating System: windows xp spIII, Apache 2.2.3
PHP Version: 5.2.9
New Comment:
http://www.ehow.com/how_2033393_report-bugs-firefox.html
And also note: I can not reproduce this with any browser. Firefox
3.0.10
works just fine too.
Previous Comments:
------------------------------------------------------------------------
[2009-05-14 22:39:43] my dot email dot subscriptions at gmail dot com
Thanks for your guidance, you have saved me a lot of work.
As you suggested, I tried it with another browser(s) (opera, chrome &
IE) and it works as it should so the problem is browser (Firefox)
related.
I have one more favor to ask, what can I do, and how, to be able to
report this behavior to Firefox after a thorough investigation?.
Thank you very much for your help and guidance.
------------------------------------------------------------------------
[2009-05-14 21:52:53] jani@php.net
And accessing your test shows it only creates one file for me. So it's
propably some braindead browser issue you're having. (I tested with
Chrome..)
------------------------------------------------------------------------
[2009-05-14 21:50:50] jani@php.net
Please check your access log for this test script being accessed. I bet
you get 2 requests to it instead of one when you access it with
browser.
------------------------------------------------------------------------
[2009-05-14 20:12:56] my dot email dot subscriptions at gmail dot com
I just tested a special script that resembles the working script in two
forms.
When running the script using the browser, it does create two files.
Then when using CLI, it creates only one.
To see the test, you can use this URL:
http://www.web-carlos.com/Testing/TxtIndex.php
This will give you back the name of the created file, lets say:
'TxtIndex11.txt' to see the problem use the browser and ask for both
files like this:
http://www.web-carlos.com/WebTempFiles/TxtIndex11.txt
http://www.web-carlos.com/WebTempFiles/TxtIndex12.txt
Both files will have the same content.
To see the whole script used, browse this url:
http://www.web-carlos.com/Testing/TxtIndex.txt
I have also place a phpinfo if you want to see the server
configuration, just browse:
http://www.web-carlos.com/Testing/phpinfo.php
Believe it or not, but it does create two files using the browser, of
course I can't use CLI on the server but I do, at my development pc.
------------------------------------------------------------------------
[2009-05-14 17:19:39] pajoye@php.net
hi,
I don't think you are really using the right code to test.
there is no way that:
$fp = fopen('a1.txt', 'x');
if (!$fp) die("cannot open a1.txt\n");
fclose($fp);
produce two files, a1.txt and a2.txt. Same for all other examples.
Please run it in the CLI if you are not sure what files you are running
via apache.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/48271
--
Edit this bug report at http://bugs.php.net/?id=48271&edit=1