mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Use specialized functions instead of macros
This commit is contained in:
parent
22f6cf91d5
commit
40256e0f9c
11 changed files with 270 additions and 138 deletions
|
@ -728,7 +728,7 @@ ZEND_API void convert_to_object(zval *op) /* {{{ */
|
|||
zval tmp;
|
||||
ZVAL_COPY_VALUE(&tmp, op);
|
||||
object_init(op);
|
||||
zend_hash_str_update(Z_OBJPROP_P(op), "scalar", sizeof("scalar")-1, &tmp);
|
||||
zend_hash_str_add_new(Z_OBJPROP_P(op), "scalar", sizeof("scalar")-1, &tmp);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue