Re: Bug #10996 Updated: fopen of url results in invlaid file handle
| From: | Alan Knowles | Date: | Mon, 17 Dec 2001 07:46:28 +0000 |
| Subject: | Re: Bug #10996 Updated: fopen of url results in invlaid file handle | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-74089@lists.php.net to get a copy of this message | ||
got a bit bored - and started testing some of these bugs - If anyone wants to make suggestions on 'ettiquete' of modifying the bug reports - please shout at me :)
regards
alan
alan_k@php.net wrote:
ID: 10996 Updated by: alan_k Reported By: giwarden@ucla.edu Old Status: Analyzed Status: Feedback Bug Type: Filesystem function related Operating System: linux PHP Version: 4.0.5 New Comment: tested this with 4.2.0-dev and appears to be fixed. could somebody check with 4.1.0? Previous Comments: ------------------------------------------------------------------------ [2001-05-21 14:41:53] sniper@php.net Reproduced with PHP 4.0.6RC1. --Jani ------------------------------------------------------------------------ [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 ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=10996&edit=1