Bug #8170 Updated: fsockopen and fopen with ip address not active

From: Date: Wed, 21 Nov 2001 14:41:13 +0000
Subject: Bug #8170 Updated: fsockopen and fopen with ip address not active
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-71221@lists.php.net to get a copy of this message
ID: 8170 Updated by: mfischer Reported By: andrusso@libero.it Old Status: Open Status: Feedback Bug Type: Sockets related Operating System: Windows NT AND 98 PHP Version: 4.0.3pl1 New Comment: Can you reproduce this with latest RC http://phpuk.org/~james/php-4.1.0RC3-win32.zip Feedback. Previous Comments: ------------------------------------------------------------------------ [2000-12-08 10:49:44] andrusso@libero.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. ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=8170&edit=1

« previous php.dev (#71221) next »