#21267 [Opn->Csd]: fopen() fails on some URLs
| From: | iliaa@php.net | Date: | Fri, 03 Jan 2003 16:25:46 +0000 |
| Subject: | #21267 [Opn->Csd]: fopen() fails on some URLs | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-28992@lists.php.net to get a copy of this message | ||
ID: 21267
Updated by: iliaa@php.net
Reported By: patric@liefdeis.com
-Status: Open
+Status: Closed
Bug Type: *URL Functions
Operating System: FreeBSD
PHP Version: 4.4.0-dev
New Comment:
This bug has been fixed in CVS.
In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.
404 means the page cannot be found, openning 404 error handler URL is
counter intuitive since it implies that the fopen() succeeded opening
the request page, even though the requested page does not exist.
This will not be fixed.
Previous Comments:
------------------------------------------------------------------------
[2003-01-03 05:12:10] patric@liefdeis.com
Tnx for the fast change, and it is almost working. But one thing still
doesn't:
When you open:
http://www.smswhiz.com/http2sms/sendsms.asp
You get a redirect to sendfailed.htm. The new URL to open should be:
http://www.smswhiz.com/http2sms/sendfailed.htm
and this site exists. But when I try it with PHP (with the latest
snapshot ofcourse), I get a 404, so I think it opens:
http://www.smswhiz.com/sendfailed.htm
I know, IIS 5.0 really sucks in those redirects, but can you maybe fix
this problem too? Tnx!
------------------------------------------------------------------------
[2002-12-29 14:03:03] iliaa@php.net
This bug has been fixed in CVS.
In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.
------------------------------------------------------------------------
[2002-12-29 12:06:44] patric@liefdeis.com
But can you tell me why in version 4.2.3 this works perfect?
------------------------------------------------------------------------
[2002-12-29 10:05:47] rasmus@php.net
That's because of the silly 302 temporary redirect to a relative URL
with GET-method args that is done on that site. Open the right
location and it should work fine. We probably should support this at
some point though.
------------------------------------------------------------------------
[2002-12-29 09:44:51] patric@liefdeis.com
When trying fopen() on http://, it fails on some urls.
Example:
fopen("http://www.smswhiz.com/","r");
Gives stream error. The site IS touched, but you do not receive any
data back from the site.
While for example:
fopen("http://www.tweakers.net/","r");
Does work without any problem!
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=21267&edit=1