php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29628 copy(http://url/pic.gif): failed to open stream: Bad file descriptor
Submitted: 2004-08-12 09:52 UTC Modified: 2004-08-16 04:52 UTC
Votes:5
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: qkman at 21cn dot com Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 5.0.0 OS: win2003 IIS6
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: qkman at 21cn dot com
New email:
PHP Version: OS:

 

 [2004-08-12 09:52 UTC] 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 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-08-14 17:33 UTC] qkman at 21cn dot com
Please tell me why ???!!! thank !
 [2004-08-14 18:53 UTC] 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-16 04:32 UTC] qkman at 21cn dot com
I know what happen now !!!

the firewall(Norton Internet Security) error to block the php-cgi.exe connect URL !!!

disable the firewall now !!!
 [2004-08-16 04:32 UTC] qkman at 21cn dot com
I know what happen now !!!

the firewall(Norton Internet Security) error to block the php-cgi.exe connect URL !!!

disable the firewall now !!!
 [2004-08-16 04:32 UTC] qkman at 21cn dot com
I know what happen now !!!

the firewall(Norton Internet Security) error to block the php-cgi.exe connect URL !!!

disable the firewall now !!!
 [2004-08-16 04:52 UTC] pollita@php.net
Then it's not a PHP bug.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 17 10:01:28 2024 UTC