#22937 [Opn->Csd]: Valid http:// URL does not open with fopen()
| From: | sniper@php.net | Date: | Fri, 28 Mar 2003 01:01:40 +0000 |
| Subject: | #22937 [Opn->Csd]: Valid http:// URL does not open with fopen() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-36631@lists.php.net to get a copy of this message | ||
ID: 22937
Updated by: sniper@php.net
Reported By: freddie at bingham dot net
-Status: Open
+Status: Closed
Bug Type: Sockets related
Operating System: Redhat 7.3
PHP Version: 4.3.1
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
Works fine here. (using latest stable CVS)
Previous Comments:
------------------------------------------------------------------------
[2003-03-27 18:41:30] freddie at bingham dot net
Consider the following script:
<?php
$p = fopen('http://pub133.ezboard.com/bonesixthwarriors',
'rb');
$p2 = fopen('http://www.microsoft.com',
'rb');
?>
Both sites are opened when using php 4.2.3 (and earier version) whereas
4.3.1 throws the following warning:
Warning: fopen(http://pub133.ezboard.com/bonesixthwarriors)
[function.fopen]: failed to create stream: HTTP request failed! in
/home/juan/public_html/forums/foo.php on line 3
Considering that the second fopen() generates no warnings, fopen is
working in some cases in regards to urls. Of course, Apache has been
restarted numerous times with no effect.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=22937&edit=1