From c5237d82bf01a762bb38f80def59b9c16cb84dc1 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Mon, 24 May 2010 14:11:39 +0000 Subject: Added caches to eliminate repeatable run-time bindings of functions, classes, constants, methods and properties --- ext/xmlwriter/php_xmlwriter.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'ext/xmlwriter/php_xmlwriter.c') diff --git a/ext/xmlwriter/php_xmlwriter.c b/ext/xmlwriter/php_xmlwriter.c index e26c6dc7e1..365fc82429 100644 --- a/ext/xmlwriter/php_xmlwriter.c +++ b/ext/xmlwriter/php_xmlwriter.c @@ -143,7 +143,6 @@ static void xmlwriter_object_free_storage(void *object TSRMLS_DC) static zend_object_value xmlwriter_object_new(zend_class_entry *class_type TSRMLS_DC) { ze_xmlwriter_object *intern; - zval *tmp; zend_object_value retval; intern = emalloc(sizeof(ze_xmlwriter_object)); @@ -151,8 +150,7 @@ static zend_object_value xmlwriter_object_new(zend_class_entry *class_type TSRML intern->xmlwriter_ptr = NULL; zend_object_std_init(&intern->zo, class_type TSRMLS_CC); - zend_hash_copy(intern->zo.properties, &class_type->default_properties, (copy_ctor_func_t) zval_add_ref, - (void *) &tmp, sizeof(zval *)); + object_properties_init(&intern->zo, class_type); retval.handle = zend_objects_store_put(intern, NULL, -- cgit v1.2.1