Skip to content

Commit edb8098

Browse files
committed
Fix
1 parent 4d39faf commit edb8098

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

php_phongo.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ static zval* php_phongo_read_property(zend_object *object, zend_string *member,
169169

170170
static zval *php_phongo_write_property(zend_object *zobj, zend_string *name, zval *value, void **cache_slot)
171171
{
172+
Z_TRY_ADDREF_P(value);
172173
return zend_hash_add_new(zobj->handlers->get_properties(zobj), name, value);
173174
}
174175
static int php_phongo_has_property(zend_object *zobj, zend_string *name, int has_set_exists, void **cache_slot)

0 commit comments

Comments
 (0)