From 342c6e0b2328db952709dd5a35c113e2b17c1e3d Mon Sep 17 00:00:00 2001 From: Zeev Suraski Date: Sun, 18 Apr 1999 15:11:52 +0000 Subject: Whatnot: * updated alloc_persist to use critical sections * changed extension shutdown to two-phase * updated dependencies * PR support (don't remember if there was any really) --- Zend/zend.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Zend/zend.c') diff --git a/Zend/zend.c b/Zend/zend.c index 485256beae..df5f38ce2c 100644 --- a/Zend/zend.c +++ b/Zend/zend.c @@ -154,6 +154,8 @@ static void register_standard_class() standard_class.handle_function_call = NULL; standard_class.handle_property_get = NULL; standard_class.handle_property_set = NULL; + standard_class.refcount = (int *) malloc(sizeof(int)); + *standard_class.refcount = 1; zend_hash_add(CG(class_table), "stdClass", sizeof("stdClass"), &standard_class, sizeof(zend_class_entry), NULL); } @@ -206,7 +208,7 @@ void zend_shutdown() free(CG(function_table)); zend_hash_destroy(CG(class_table)); free(CG(class_table)); - zend_llist_destroy(&zend_extensions); + zend_shutdown_extensions(); free(zend_version_info); zend_shutdown_constants(); } -- cgit v1.2.1