From 3ae3eb06e92d2ae5894e4e0365b755ba9923446c Mon Sep 17 00:00:00 2001 From: Zeev Suraski Date: Thu, 19 Sep 2002 15:54:23 +0000 Subject: [PATCH] Fix connection_status() --- main/main.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/main/main.c b/main/main.c index 1306414dd0..5d55161845 100644 --- a/main/main.c +++ b/main/main.c @@ -793,6 +793,12 @@ static void php_message_handler_for_zend(long message, void *data) } /* }}} */ + +void php_on_timeout(int seconds TSRMLS_DC) +{ + PG(connection_status) |= PHP_CONNECTION_TIMEOUT; +} + #if PHP_SIGCHILD /* {{{ sigchld_handler */ @@ -1024,6 +1030,7 @@ int php_module_startup(sapi_module_struct *sf, zend_module_entry *additional_mod 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 -- 2.50.1