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 /ext/xsl | |
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 'ext/xsl')
-rw-r--r-- | ext/xsl/php_xsl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/xsl/php_xsl.c b/ext/xsl/php_xsl.c index f177f42e66..53e5e06b8d 100644 --- a/ext/xsl/php_xsl.c +++ b/ext/xsl/php_xsl.c @@ -115,7 +115,6 @@ zend_object_value xsl_objects_new(zend_class_entry *class_type TSRMLS_DC) { zend_object_value retval; xsl_object *intern; - zval *tmp; intern = emalloc(sizeof(xsl_object)); intern->ptr = NULL; @@ -129,7 +128,7 @@ zend_object_value xsl_objects_new(zend_class_entry *class_type TSRMLS_DC) intern->profiling = NULL; zend_object_std_init(&intern->std, class_type TSRMLS_CC); - zend_hash_copy(intern->std.properties, &class_type->default_properties, (copy_ctor_func_t) zval_add_ref, (void *) &tmp, sizeof(zval *)); + object_properties_init(&intern->std, class_type); ALLOC_HASHTABLE(intern->parameter); zend_hash_init(intern->parameter, 0, NULL, ZVAL_PTR_DTOR, 0); ALLOC_HASHTABLE(intern->registered_phpfunctions); |