PHP 4.0 Bug #8413 Updated: connection_status() returns 0 on timeout

From: Date: Mon, 25 Dec 2000 12:02:52 +0000
Subject: PHP 4.0 Bug #8413 Updated: connection_status() returns 0 on timeout
Groups: php.dev 
Request: Send a blank email to php-dev+get-42245@lists.php.net to get a copy of this message
ID: 8413 User Update by: omakarenko@cyberplat.ru Status: Open Old-Bug Type: Program Execution Bug Type: Unknown/Other Function Description: connection_status() returns 0 on timeout I am not sure what "bug type" to choose... So I change it to "Unknown/Other" for now. oleg Previous Comments: --------------------------------------------------------------------------- [2000-12-25 05:41:07] omakarenko@cyberplat.ru safe_mode is off. timeout.php: <?php register_shutdown_function("shutdown"); set_time_out(1); while(1); function shutdown() { printf ("Shutdown: %dn", connection_status()); if (connection_timeout()) { print ("Connection timeoutn"); } } ?> php timeout.php gives me Shutdown: 0 instead of 2 and "Connection timeout" That is true for php since 4.0.1 The PHP_CONNECTION_TIMEOUT flag is never turned on in zend_execute_API.c oleg --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=8413

« previous php.dev (#42245) next »