Skip to content

Commit 4c8259b

Browse files
author
Andi Gutmans
committed
- Call ZEND_SET_SYMBOL_WITH_LENGTH() with refcount 1 from the standard
ZEND_SET_SYMBOL()
1 parent 8f91051 commit 4c8259b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_API.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ ZEND_API int add_property_stringl(zval *arg, char *key, char *str, uint length,
247247
{ \
248248
char *_name = (name); \
249249
\
250-
ZEND_SET_SYMBOL_WITH_LENGTH(symtable, _name, strlen(_name)+1, var, 0, 0); \
250+
ZEND_SET_SYMBOL_WITH_LENGTH(symtable, _name, strlen(_name)+1, var, 1, 0); \
251251
}
252252

253253
#define ZEND_SET_SYMBOL_WITH_LENGTH(symtable, name, name_length, var, _refcount, _is_ref) \

0 commit comments

Comments
 (0)