]> granicus.if.org Git - php/commitdiff
- Fix crash correctly.
authorAndi Gutmans <andi@php.net>
Wed, 26 Dec 2001 11:18:00 +0000 (11:18 +0000)
committerAndi Gutmans <andi@php.net>
Wed, 26 Dec 2001 11:18:00 +0000 (11:18 +0000)
Zend/zend.c

index 40c752e1c0afc1a97e9a74a7821bbe5eeab94d37..1e945fc9daec6a448846f524cdd7a885d3844cd0 100644 (file)
@@ -493,8 +493,11 @@ void zend_shutdown(TSRMLS_D)
        zend_destroy_rsrc_list_dtors();
        zend_hash_destroy(&module_registry);
 
+#ifndef ZTS
+       /* In ZTS mode these are freed by compiler_globals_dtor() */
        zend_hash_destroy(GLOBAL_FUNCTION_TABLE);
-/*     zend_hash_destroy(GLOBAL_CLASS_TABLE); FIXME */
+       zend_hash_destroy(GLOBAL_CLASS_TABLE);
+#endif
 
        zend_hash_destroy(GLOBAL_AUTO_GLOBALS_TABLE);
        free(GLOBAL_AUTO_GLOBALS_TABLE);