From: [EMAIL PROTECTED]
Operating system: linux
PHP version: 4.0.5
PHP Bug Type: Filesystem function related
Bug description: fopen of url results in invlaid file handle
#!/usr/local/bin/php
<?php
$fp = fopen("php://stdin", "r"); #same result with a file
$text = fread($fp, 100);
fclose($fp);
$fp2 = fopen("http://cnn.com", "r");
$text2 = fread($fp2, 100);
fclose($fp2);
?>
CGI version of php 4.0.5 (4.0.2 did the same too) with default "./configure"
default php.ini too
The URL fopen usually goes through (meaning the server of the called URL usually gets
the request), but the response is unreadable since the file-handle isn't valid. If I'm
missing something totally obvious I apologize in advance. Thanks so much.
-Graham Warden
--
Edit Bug report at: http://bugs.php.net/?id=10996&edit=1
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]