summaryrefslogtreecommitdiff
path: root/main/main.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2008-01-22 09:27:48 +0000
committerDmitry Stogov <dmitry@php.net>2008-01-22 09:27:48 +0000
commit71592cec0684d376df3fc91645e98fb9679edcd5 (patch)
tree7d05ba19e5e467fcab54952c23b8069275394803 /main/main.c
parent2be1ae5415f3087b662ac9ba6f84bb82db59c0d2 (diff)
downloadphp-git-71592cec0684d376df3fc91645e98fb9679edcd5.tar.gz
Added garbage collector
Diffstat (limited to 'main/main.c')
-rw-r--r--main/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main/main.c b/main/main.c
index 5386a897ed..21afcc6135 100644
--- a/main/main.c
+++ b/main/main.c
@@ -1703,6 +1703,8 @@ int php_module_startup(sapi_module_struct *sf, zend_module_entry *additional_mod
ts_allocate_id(&php_win32_core_globals_id, sizeof(php_win32_core_globals), (ts_allocate_ctor) php_win32_core_globals_ctor, (ts_allocate_dtor) php_win32_core_globals_dtor);
#endif
#endif
+ gc_globals_ctor(TSRMLS_C);
+
EG(bailout) = NULL;
EG(error_reporting) = E_ALL & ~E_NOTICE;
@@ -1904,6 +1906,7 @@ void php_module_shutdown(TSRMLS_D)
zend_ini_shutdown(TSRMLS_C);
shutdown_memory_manager(CG(unclean_shutdown), 1 TSRMLS_CC);
core_globals_dtor(&core_globals TSRMLS_CC);
+ gc_globals_dtor(TSRMLS_C);
#else
zend_ini_global_shutdown(TSRMLS_C);
ts_free_id(core_globals_id);