diff options
author | Dmitry Stogov <dmitry@php.net> | 2010-05-24 14:11:39 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2010-05-24 14:11:39 +0000 |
commit | c5237d82bf01a762bb38f80def59b9c16cb84dc1 (patch) | |
tree | 6e769820ba97ef669765c6ecfeabb08faf9e6ebc /Zend/zend_exceptions.c | |
parent | 1cabc8cd3a3bf5c12a8ece9efb59e3f5381f1ae5 (diff) | |
download | php-git-c5237d82bf01a762bb38f80def59b9c16cb84dc1.tar.gz |
Added caches to eliminate repeatable run-time bindings of functions, classes, constants, methods and properties
Diffstat (limited to 'Zend/zend_exceptions.c')
-rw-r--r-- | Zend/zend_exceptions.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Zend/zend_exceptions.c b/Zend/zend_exceptions.c index 301037ade5..abed6c7f84 100644 --- a/Zend/zend_exceptions.c +++ b/Zend/zend_exceptions.c @@ -138,16 +138,14 @@ ZEND_API void zend_clear_exception(TSRMLS_D) /* {{{ */ static zend_object_value zend_default_exception_new_ex(zend_class_entry *class_type, int skip_top_traces TSRMLS_DC) /* {{{ */ { - zval tmp, obj; + zval obj; zend_object *object; zval *trace; Z_OBJVAL(obj) = zend_objects_new(&object, class_type TSRMLS_CC); Z_OBJ_HT(obj) = &default_exception_handlers; - ALLOC_HASHTABLE(object->properties); - zend_hash_init(object->properties, 0, NULL, ZVAL_PTR_DTOR, 0); - zend_hash_copy(object->properties, &class_type->default_properties, (copy_ctor_func_t) zval_add_ref, (void *) &tmp, sizeof(zval *)); + object_properties_init(object, class_type); ALLOC_ZVAL(trace); Z_UNSET_ISREF_P(trace); |