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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
44 - 39 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2020 The PHP Group
All rights reserved.
Last updated: Thu Feb 27 12:01:25 2020 UTC