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

From: Date: Mon, 09 Jul 2001 12:22:09 +0000
Subject: Bug #8413 Updated: connection_status() returns 0 on timeout
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-59292@lists.php.net to get a copy of this message
ID: 8413 Updated by: jeroen Reported By: omakarenko@cyberplat.ru Old Status: Open Status: Closed Bug Type: Scripting Engine problem Operating System: linux PHP Version: 4.0.4 New Comment: closing We should really nuke phpdoc/features/connection_handling, or rewrite it... Previous Comments: ------------------------------------------------------------------------ [2001-06-15 02:53:26] omakarenko@cyberplat.ru > This is obvious. The time the shutdown function > is called, the status IS shutdown. AND the status IS timeout. That is obvious too :) It is a bit flag and it could also indicate that the connection was timeouted if only some php developer was not so lazy :))) > And the connection_timeout() function is deprecated (and > removed) as of 4.0.5 that is nice. The report was for 4.0.4 and the connection_timeout() was used only to make the code shorter. Change it to connection_status() and reopen the bug. How can I determine that the script was terminated due to execution_time limit? connection_status() is not depricated yet, is it? But it still doesn't return the TIMEOUT status. Just grep through the code... PHP_CONNECTION_TIMEOUT is defined but never used. Is it also depricated? =oleg ------------------------------------------------------------------------ [2001-06-14 16:44:00] sniper@php.net This is obvious. The time the shutdown function is called, the status IS shutdown. And the connection_timeout() function is deprecated (and removed) as of 4.0.5 ------------------------------------------------------------------------ [2001-01-15 08:55:55] omakarenko@cyberplat.ru use standalone php to get the output or change the code somehow to get the result of connection_status() and connection_timeout() some other way (write to file, for example) the point is that it seems to be impossible to check for timeout state: connection_status() and connection_timeout() both return zero while the shutdown function was definitly called due to timeout. The example is stupid but it is short and clearly demonstartes the bug. oleg ------------------------------------------------------------------------ [2001-01-13 13:33:34] cynic@php.net I get no output at all (RH6.2 4.0.4 & NT5 php4-200101130745) ------------------------------------------------------------------------ [2000-12-25 07:02:52] omakarenko@cyberplat.ru I am not sure what "bug type" to choose... So I change it to "Unknown/Other" for now. oleg ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/?id=8413 ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=8413&edit=1

« previous php.dev (#59292) next »