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

From: Date: Mon, 25 Dec 2000 10:41:07 +0000
Subject: PHP 4.0 Bug #8413: connection_status() returns 0 on timeout
Groups: php.dev 
Request: Send a blank email to php-dev+get-42243@lists.php.net to get a copy of this message
From: omakarenko@cyberplat.ru Operating system: linux PHP version: 4.0.4 PHP Bug Type: Program Execution Bug description: connection_status() returns 0 on timeout safe_mode is off. timeout.php: <?php register_shutdown_function("shutdown"); set_time_out(1); while(1); function shutdown() { printf ("Shutdown: %d\n", connection_status()); if (connection_timeout()) { print ("Connection timeout\n"); } } ?> 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 -- Edit Bug report at: http://bugs.php.net/?id=8413&edit=1

« previous php.dev (#42243) next »