#20759 [Fbk->Opn]: fopen sometimes hangs
| From: | mitra_php at mitra dot biz | Date: | Mon, 02 Dec 2002 11:07:55 +0000 |
| Subject: | #20759 [Fbk->Opn]: fopen sometimes hangs | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-26387@lists.php.net to get a copy of this message | ||
ID: 20759
User updated by: mitra_php@mitra.biz
Reported By: mitra_php@mitra.biz
-Status: Feedback
+Status: Open
Bug Type: HTTP related
Operating System: Linux
PHP Version: 4.2.3
New Comment:
Thanks for the suggestion, but the PHP timeout isn't the problem - its
fopen that is hanging. It should fail allowing the script to handle the
error gracefully (in my case moving on to the next URL). The PHP
timeout only fails the whole PHP script if nothing happens in 60
seconds.
Previous Comments:
------------------------------------------------------------------------
[2002-12-02 04:24:55] wez@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-latest.zip
In PHP 4.3, there is a new ini setting which allows setting a default
timeout.
Please try PHP-4.3.0RC2 from http://qa.php.net.
Be sure to read the NEWS file for info about the timeout option. (the
default is 60 seconds).
------------------------------------------------------------------------
[2002-12-02 04:21:55] mitra_php@mitra.biz
Sometimes fopen of an http URL just sits there - no error, no results,
typically when it does this PHP refuses to output ANY output for that
page.
FOr example fopen("http://anyurl.com","r") works fine
but
fopen("http://reptile.peerfear.org/reptile/servlet/sitefilter/http/www.cnn.com/WORLD","r")
Just sits there for ever.
Its possible that reptile is misbehaving, although this URL works fine
in a browser, and in any case fopen shouldn't just sit there.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20759&edit=1