We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c9870c commit e932088Copy full SHA for e932088
msgpack_unpack.c
@@ -92,7 +92,7 @@ static zval *msgpack_var_push(msgpack_unserialize_data_t *var_hashx) /* {{{ */ {
92
/* }}} */
93
94
static inline void msgpack_var_replace(zval *old, zval *new) /* {{{ */ {
95
- if (!MSGPACK_IS_STACK_VALUE(old)) {
+ if (!MSGPACK_IS_STACK_VALUE(old) && Z_TYPE_P(old) != IS_REFERENCE) {
96
ZVAL_INDIRECT(old, new);
97
}
98
0 commit comments