Skip to content

Commit 7e8bd05

Browse files
author
Ilia Alshanetsky
committed
Fixed ZTS build.
1 parent 7a3dbcd commit 7e8bd05

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Zend/zend_objects.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ ZEND_API zend_object *zend_objects_get_address(zval *zobject TSRMLS_DC)
114114
static void zval_add_ref_or_clone(zval **p)
115115
{
116116
if (Z_TYPE_PP(p) == IS_OBJECT) {
117+
TSRMLS_FETCH();
118+
117119
if (Z_OBJ_HANDLER_PP(p, clone_obj) == NULL) {
118120
zend_error(E_ERROR, "Trying to clone an uncloneable object of class %s", Z_OBJCE_PP(p)->name);
119121
} else {

0 commit comments

Comments
 (0)