PHP 4.0 Bug #8170: fsockopen and fopen with ip address not active
| From: | andrusso at libero dot it | Date: | Fri, 08 Dec 2000 15:49:44 +0000 |
| Subject: | PHP 4.0 Bug #8170: fsockopen and fopen with ip address not active | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-40568@lists.php.net to get a copy of this message | ||
From: andrusso@libero.it
Operating system: Windows NT AND 98
PHP version: 4.0.3pl1
PHP Bug Type: Sockets related
Bug description: fsockopen and fopen with ip address not active
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.
--
Edit Bug report at: http://bugs.php.net/?id=8170&edit=1