diff options
author | Zeev Suraski <zeev@php.net> | 2002-09-19 15:54:23 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2002-09-19 15:54:23 +0000 |
commit | 3ae3eb06e92d2ae5894e4e0365b755ba9923446c (patch) | |
tree | 63670768ed4f1ecf3252240fdb87a9f967bf157d /main/main.c | |
parent | 8a003f80210ceb6def77614335a7b08425afa10b (diff) | |
download | php-git-3ae3eb06e92d2ae5894e4e0365b755ba9923446c.tar.gz |
Fix connection_status()
Diffstat (limited to 'main/main.c')
-rw-r--r-- | main/main.c | 7 |
1 files changed, 7 insertions, 0 deletions
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 |