#21656 [NEW]: fclose() don't close the socket

From: Date: Wed, 15 Jan 2003 13:31:58 +0000
Subject: #21656 [NEW]: fclose() don't close the socket
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-30108@lists.php.net to get a copy of this message
From: azevedo@tchelinux.com.br Operating system: Linux (Slackware) PHP version: 4.3.0 PHP Bug Type: Sockets related Bug description: fclose() don't close the socket Hi, I've made a script to connect using fsockopen() (not pfsockopen()), and check the timeout into while. If the connection got a time out, I close the socket and restart the request again. The problem is that when I got some network problem that made the connection to be lost, the PHP script simple doesn't close this socket with fclose() and when I open the socket again, I can't send or receive any data. The script is running at shell, and is fetching many web pages to insert into a mysql database. All works fine, till I got any network problem. I've searched all the documentation and bug reports and there's nothing talking about the fclose() to not real close the socket. There's any other way to really force the socket to be closed and oppened again in the same script? Thanks in advice. -- Edit bug report at http://bugs.php.net/?id=21656&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=21656&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=21656&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=21656&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=21656&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=21656&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=21656&r=support Expected behavior: http://bugs.php.net/fix.php?id=21656&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=21656&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=21656&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=21656&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21656&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=21656&r=dst IIS Stability: http://bugs.php.net/fix.php?id=21656&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=21656&r=gnused

« previous php.bugs (#30108) next »