Skip to content

Commit

Permalink
Pass TSRM to create_object
Browse files Browse the repository at this point in the history
  • Loading branch information
smalyshev committed Feb 14, 2002
1 parent 68a82f1 commit cefbdcc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Zend/zend.h
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion Zend/zend_API.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit cefbdcc

Please sign in to comment.