summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/main.c b/main/main.c
index fc5dc10bd4..ba1cef84c7 100644
--- a/main/main.c
+++ b/main/main.c
@@ -923,6 +923,7 @@ 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;
+ zend_set_timeout(EG(timeout_seconds));
}
#if PHP_SIGCHILD