ID: 37517 Updated by: [EMAIL PROTECTED] Reported By: gzaboy at hotmai dot com -Status: Open +Status: Feedback Bug Type: *Network Functions Operating System: windows 2003 server PHP Version: 5.1.4 New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.2-win32-latest.zip I've done a basic test with latest php 5.2 cvs and it works fine. You need to provide more info about your program, like is $server an IP (v4 or v6) or a hostname, the protocol used, etc.. Previous Comments: ------------------------------------------------------------------------ [2006-05-19 11:14:24] gzaboy at hotmai dot com Description: ------------ the timeout option of fsockopen seems to be ignored below code,if remote host has no responed,the error information:"Error" would not display: Reproduce code: --------------- $h = fsockopen($server,80,$errno,$errstr,5); if($h){ fwrite($h,$post); while(!feof($h)){ $str .= fgets($h,127); } fclose($h); return $str; }else{ die("Error"); } Expected result: ---------------- die("Error"); ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=37517&edit=1