|  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 ("", 80, $errno, $errstr, 3);
Where 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("", "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.


Add a Patch

Pull Requests

Add a Pull Request


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

 [2001-12-13 06:23 UTC]
No feedback. Closing.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Jul 23 12:01:30 2024 UTC