From:             freddie at bingham dot net
Operating system: Redhat 7.3
PHP version:      4.3.1
PHP Bug Type:     Sockets related
Bug description:  Valid http:// URL does not open with fopen()

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 bug report at http://bugs.php.net/?id=22937&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=22937&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=22937&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=22937&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=22937&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=22937&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=22937&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=22937&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=22937&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=22937&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=22937&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22937&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=22937&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=22937&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=22937&r=gnused

Reply via email to