From:             igor at oleinikov dot ru
Operating system: Windows XP SP2 Build 2600
PHP version:      5.1.2
PHP Bug Type:     Streams related
Bug description:  failed to open stream when trying to open remote file

Description:
------------
When trying to open remote file via HTTP protocol, PHP produces warning:

failed to open stream: Resource temporarily unavailable

My Windows system have russian locale, so actualy I have localized error
message, but this error is Socket error #10035 "Resource temporarily
unavailable".

I have tested same code on FreeBSD system, and this error wasn't
occuired.

PHP info:
System: Windows NT SCORP 5.1 build 2600
PHP API: 20041225
PHP Extension: 20050922
Zend Extension: 220051025
Debug Build: no
Thread Safety: enabled
Zend Memory Manager: enabled
IPv6 Support: enabled
Registered PHP Streams: php, file, http, ftp, compress.zlib, https, ftps
Registered Stream Socket Transports: tcp, udp, ssl, sslv3, sslv2, tls

allow_url_fopen: On
safe_mode: Off

Reproduce code:
---------------
$f = fopen('http://domain/file'); //series of real URLs and IP addresses
was tried
$data = fread($f, 1024);
print $data;

Expected result:
----------------
data of file http://domain/file

Actual result:
--------------
Warning: fopen(http://domain/file) [function.fopen]: failed to open
stream: Resource temporarily unavailable. in X:\Path\file.php on line 1

Warning: fread(): supplied argument is not a valid stream resource in
X:\Path\file.php on line 2

-- 
Edit bug report at http://bugs.php.net/?id=36925&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=36925&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): 
http://bugs.php.net/fix.php?id=36925&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=36925&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=36925&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=36925&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=36925&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=36925&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=36925&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=36925&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=36925&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=36925&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=36925&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=36925&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=36925&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=36925&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=36925&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=36925&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=36925&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=36925&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=36925&r=mysqlcfg

Reply via email to