summaryrefslogtreecommitdiff
path: root/Zend/zend.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>1999-04-18 15:11:52 +0000
committerZeev Suraski <zeev@php.net>1999-04-18 15:11:52 +0000
commit342c6e0b2328db952709dd5a35c113e2b17c1e3d (patch)
treea43236d5e2474a8f55a6e5cb9ebd262da5374770 /Zend/zend.c
parent2e8fb4e329bf98eb33dffad4c5fb1b49f73e7517 (diff)
downloadphp-git-342c6e0b2328db952709dd5a35c113e2b17c1e3d.tar.gz
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)
Diffstat (limited to 'Zend/zend.c')
-rw-r--r--Zend/zend.c4
1 files changed, 3 insertions, 1 deletions
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();
}