ID: 8413
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Unknown/Other Function
Operating system: 
PHP Version: 4.0.4
Assigned To: 
Comments:

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



Previous Comments:
---------------------------------------------------------------------------

[2001-01-15 08:55:55] [EMAIL PROTECTED]
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] [EMAIL PROTECTED]
I get no output at all (RH6.2 4.0.4 & NT5 php4-200101130745)

---------------------------------------------------------------------------

[2000-12-25 07:02:52] [EMAIL PROTECTED]
I am not sure what "bug type" to choose...

So I change it to "Unknown/Other" for now.

oleg

---------------------------------------------------------------------------

[2000-12-25 05:41:07] [EMAIL PROTECTED]
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

---------------------------------------------------------------------------



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=8413&edit=2


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to