diff options
author | Dmitry Stogov <dmitry@php.net> | 2008-06-25 12:18:36 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2008-06-25 12:18:36 +0000 |
commit | 531b31ca0809ff9d356a24d7c49fc9ed2302dc1b (patch) | |
tree | 943dbf9858a1854b1d7cb3bb248f67b4820b4502 /main/php_ticks.c | |
parent | c5ec48e858800afd14d59e2b32dc94a3e29cc5c3 (diff) | |
download | php-git-531b31ca0809ff9d356a24d7c49fc9ed2302dc1b.tar.gz |
Fixed bug #45352 (Segmentation fault because of tick function on second request)
Diffstat (limited to 'main/php_ticks.c')
-rw-r--r-- | main/php_ticks.c | 5 |
1 files changed, 5 insertions, 0 deletions
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)); |