summaryrefslogtreecommitdiff
path: root/ext/standard/basic_functions.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2006-11-10 11:42:07 +0000
committerDmitry Stogov <dmitry@php.net>2006-11-10 11:42:07 +0000
commit532b02cd1934d227b08f7af4d42fd061dc4486a0 (patch)
tree6d5be39a5b0e8fba3caffa52ff8cb4281a87191c /ext/standard/basic_functions.c
parent41c81f20e180bb73d1765866ef2b1eafe8ccc35c (diff)
downloadphp-git-532b02cd1934d227b08f7af4d42fd061dc4486a0.tar.gz
Implemented registry cache that prevent registry lookup on each request. In case of modification of corresponding registry-tree PHP will reload it automatic.
Diffstat (limited to 'ext/standard/basic_functions.c')
-rw-r--r--ext/standard/basic_functions.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c
index 6f115c5e6e..ce939e1ada 100644
--- a/ext/standard/basic_functions.c
+++ b/ext/standard/basic_functions.c
@@ -3940,7 +3940,7 @@ PHP_MINIT_FUNCTION(basic)
#ifdef ZTS
ts_allocate_id(&basic_globals_id, sizeof(php_basic_globals), (ts_allocate_ctor) basic_globals_ctor, (ts_allocate_dtor) basic_globals_dtor);
#ifdef PHP_WIN32
- ts_allocate_id(&php_win32_core_globals_id, sizeof(php_win32_core_globals), (ts_allocate_ctor)php_win32_core_globals_ctor, NULL);
+ 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
#else
basic_globals_ctor(&basic_globals TSRMLS_CC);
@@ -4065,6 +4065,9 @@ PHP_MSHUTDOWN_FUNCTION(basic)
#endif
#else
basic_globals_dtor(&basic_globals TSRMLS_CC);
+#ifdef PHP_WIN32
+ php_win32_core_globals_dtor(&the_php_win32_core_globals TSRMLS_CC);
+#endif
#endif
php_unregister_url_stream_wrapper("php" TSRMLS_CC);