From 531b31ca0809ff9d356a24d7c49fc9ed2302dc1b Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Wed, 25 Jun 2008 12:18:36 +0000 Subject: Fixed bug #45352 (Segmentation fault because of tick function on second request) --- main/php_ticks.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'main/php_ticks.c') diff --git a/main/php_ticks.c b/main/php_ticks.c index c9fa5e4e9b..ffc1dabf59 100644 --- a/main/php_ticks.c +++ b/main/php_ticks.c @@ -27,6 +27,11 @@ int php_startup_ticks(TSRMLS_D) return SUCCESS; } +void php_deactivate_ticks(TSRMLS_D) +{ + zend_llist_clean(&PG(tick_functions)); +} + void php_shutdown_ticks(TSRMLS_D) { zend_llist_destroy(&PG(tick_functions)); -- cgit v1.2.1