Skip to content

Commit 62bdbc0

Browse files
committed
Fixed possible crash on $x = $obj->$non_string
1 parent 3b79941 commit 62bdbc0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Zend/zend_object_handlers.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,9 +284,9 @@ zval *zend_std_read_property(zval *object, zval *member, int type TSRMLS_DC)
284284
}
285285
}
286286
if (tmp_member) {
287-
rv->refcount++;
287+
(*retval)->refcount++;
288288
zval_ptr_dtor(&tmp_member);
289-
rv->refcount--;
289+
(*retval)->refcount--;
290290
}
291291
return *retval;
292292
}

0 commit comments

Comments
 (0)