zeev            Thu Sep 19 11:54:23 2002 EDT

  Modified files:              
    /php4/main  main.c 
  Log:
  Fix connection_status()
  
  
Index: php4/main/main.c
diff -u php4/main/main.c:1.487 php4/main/main.c:1.488
--- php4/main/main.c:1.487      Wed Sep 18 17:57:29 2002
+++ php4/main/main.c    Thu Sep 19 11:54:23 2002
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: main.c,v 1.487 2002/09/18 21:57:29 zeev Exp $ */
+/* $Id: main.c,v 1.488 2002/09/19 15:54:23 zeev Exp $ */
 
 /* {{{ includes
  */
@@ -793,6 +793,12 @@
 }
 /* }}} */
 
+
+void php_on_timeout(int seconds TSRMLS_DC)
+{
+       PG(connection_status) |= PHP_CONNECTION_TIMEOUT;
+}
+
 #if PHP_SIGCHILD
 /* {{{ sigchld_handler
  */
@@ -1024,6 +1030,7 @@
        zuf.unblock_interruptions = sapi_module.unblock_interruptions;
        zuf.get_configuration_directive = php_get_configuration_directive_for_zend;
        zuf.ticks_function = php_run_ticks;
+       zuf.on_timeout = php_on_timeout;
        zend_startup(&zuf, NULL, 1);
 
 #ifdef ZTS



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to