Bug #10996 Updated: fopen of url results in invlaid file handle

From: Date: Mon, 21 May 2001 12:41:53 +0000
Subject: Bug #10996 Updated: fopen of url results in invlaid file handle
Groups: php.dev 
Request: Send a blank email to php-dev+get-56039@lists.php.net to get a copy of this message
ID: 10996 Updated by: sniper Reported By: giwarden@ucla.edu Old-Status: Open Status: Analyzed Bug Type: Filesystem function related Operating system: PHP Version: 4.0.5 Assigned To: Comments: Reproduced with PHP 4.0.6RC1. --Jani Previous Comments: --------------------------------------------------------------------------- [2001-05-21 14:19:26] giwarden@ucla.edu #!/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 --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=10996&edit=2

« previous php.dev (#56039) next »