ID:               36925
 Updated by:       [EMAIL PROTECTED]
 Reported By:      igor at oleinikov dot ru
-Status:           Open
+Status:           Feedback
 Bug Type:         Streams related
 Operating System: Windows XP SP2 Build 2600
 PHP Version:      5.1.2
 New Comment:

Disable windows firewall and make sure you are able to connect to this
host with `telnet host.com 80`.


Previous Comments:
------------------------------------------------------------------------

[2006-03-30 18:08:00] igor at oleinikov dot ru

I use: $f = fopen($url, 'r');
In first post I was make a misprint.

------------------------------------------------------------------------

[2006-03-30 18:06:13] igor at oleinikov dot ru

Socket error #10035: Resource temporarily unavailable.

This error is returned from operations on nonblocking sockets that
cannot be completed immediately.

------------------------------------------------------------------------

[2006-03-30 18:02:44] [EMAIL PROTECTED]

Do you get the error when using fopen() correctly?

------------------------------------------------------------------------

[2006-03-30 17:48:28] igor at oleinikov dot ru

On PHP 5.1.1 this error occuires too.

------------------------------------------------------------------------

[2006-03-30 17:43:23] igor at oleinikov dot ru

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 this bug report at http://bugs.php.net/?id=36925&edit=1

Reply via email to