]> granicus.if.org Git - php/commitdiff
Pass TSRM to create_object
authorStanislav Malyshev <stas@php.net>
Thu, 14 Feb 2002 09:20:51 +0000 (09:20 +0000)
committerStanislav Malyshev <stas@php.net>
Thu, 14 Feb 2002 09:20:51 +0000 (09:20 +0000)
Zend/zend.h
Zend/zend_API.c

index f6fd80bf61d4b6e59c1e285de91e543d15b8ac74..9791075d6863aa6ee5f77bc29bd943fd3aeb7048 100644 (file)
@@ -280,7 +280,7 @@ struct _zend_class_entry {
        union _zend_function *clone;
 
        /* handlers */
-       zend_object_value (*create_object)(zend_class_entry *class_type);
+       zend_object_value (*create_object)(zend_class_entry *class_type TSRMLS_DC);
        void (*handle_function_call)(INTERNAL_FUNCTION_PARAMETERS, zend_property_reference *property_reference);
        zval (*handle_property_get)(zend_property_reference *property_reference);
        int (*handle_property_set)(zend_property_reference *property_reference, zval *value);
index b1707f595bcf2b415f728b24e56f059888bc8130..f6121a8cd3ea404d38a9749905b10b59d48ebd17 100644 (file)
@@ -592,7 +592,7 @@ ZEND_API int _object_and_properties_init(zval *arg, zend_class_entry *class_type
                        zend_hash_copy(object->properties, &class_type->default_properties, (copy_ctor_func_t) zval_add_ref, (void *) &tmp, sizeof(zval *));
                }
        } else {
-               arg->value.obj = class_type->create_object(class_type);
+               arg->value.obj = class_type->create_object(class_type TSRMLS_CC);
        }
        return SUCCESS;
 }