php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8170 fsockopen and fopen with ip address not active
Submitted: 2000-12-08 10:49 UTC Modified: 2001-12-13 06:23 UTC
From: andrusso at libero dot it Assigned:
Status: Closed Package: Sockets related
PHP Version: 4.0.3pl1 OS: Windows NT AND 98
Private report: No CVE-ID: None
 [2000-12-08 10:49 UTC] andrusso at libero dot it
On Windows 32 systems.
With Apache Server or IIS

$file = fsockopen ("10.1.1.121", 80, $errno, $errstr, 3);
Where 10.1.1.121 is an generic IP address

If the IP address is not active or there is not an service active on the port the script dead with a timeout (not of 3 seconds but of 30 seconds).

The same problem if I use this:

$file = fopen("http://10.1.1.121", "r");

If I use the @ the script dead after 30 seconds, so also the fopen example with remote url that I have read in the php4 manual dead.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-11-21 09:41 UTC] mfischer@php.net
Can you reproduce this with latest RC 

http://phpuk.org/~james/php-4.1.0RC3-win32.zip

Feedback.
 [2001-12-13 06:23 UTC] sander@php.net
No feedback. Closing.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 12:01:31 2024 UTC