#29628 [Bgs->Opn]: copy(http://url/pic.gif): failed to open stream: Bad file descriptor
| From: | qkman at 21cn dot com | Date: | Mon, 16 Aug 2004 02:32:26 +0000 |
| Subject: | #29628 [Bgs->Opn]: copy(http://url/pic.gif): failed to open stream: Bad file descriptor | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-64660@lists.php.net to get a copy of this message | ||
ID: 29628
User updated by: qkman at 21cn dot com
Reported By: qkman at 21cn dot com
-Status: Bogus
+Status: Open
Bug Type: Unknown/Other Function
Operating System: win2003 IIS6
PHP Version: 5.0.0
New Comment:
I know what happen now !!!
the firewall(Norton Internet Security) error to block the php-cgi.exe
connect URL !!!
disable the firewall now !!!
Previous Comments:
------------------------------------------------------------------------
[2004-08-14 18:53:36] tomsommer@php.net
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
------------------------------------------------------------------------
[2004-08-14 17:33:36] qkman at 21cn dot com
Please tell me why ???!!! thank !
------------------------------------------------------------------------
[2004-08-12 09:52:05] qkman at 21cn dot com
Description:
------------
I can't copy files from URLs (like http:// or ftp://) !
Fail in php5 , php4.3.8 , php4.3.6 , php4.3.4.4
Why ???
Reproduce code:
---------------
<?php
$s="http://bugs.php.net/gifs/logo-bug.gif";
$d="E:/t/t.gif";
echo "allow_url_fopen = ".ini_get("allow_url_fopen")."<hr>";
echo "default_socket_timeout =
".ini_get("default_socket_timeout")."<hr>";
if(copy($s,$d)) echo "copy ok<br>";
else echo "copy error<br>";
?>
Expected result:
----------------
allow_url_fopen = 1
--------------------------------------------------------------------------------
default_socket_timeout = 60
--------------------------------------------------------------------------------
copy ok
Actual result:
--------------
allow_url_fopen = 1
--------------------------------------------------------------------------------
default_socket_timeout = 60
--------------------------------------------------------------------------------
copy error
PHP Warning: copy(http://bugs.php.net/gifs/logo-bug.gif): failed to
open stream: Bad file descriptor in E:\t\t5.php on line 9
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=29628&edit=1