mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +02:00
Implement add_utf8_property_* API.
This commit is contained in:
parent
96c237275a
commit
2602e49e65
2 changed files with 138 additions and 0 deletions
|
@ -1709,6 +1709,18 @@ ZEND_API int add_property_zval_ex(zval *arg, char *key, uint key_len, zval *valu
|
|||
return SUCCESS;
|
||||
}
|
||||
|
||||
ZEND_API int add_utf8_property_zval_ex(zval *arg, char *key, uint key_len, zval *value)
|
||||
{
|
||||
zval *z_key;
|
||||
|
||||
MAKE_STD_ZVAL(z_key);
|
||||
ZVAL_UTF8_STRINGL(z_key, key, key_len-1, ZSTR_DUPLICATE);
|
||||
|
||||
Z_OBJ_HANDLER_P(arg, write_property)(arg, z_key, value TSRMLS_CC);
|
||||
zval_ptr_dtor(&z_key);
|
||||
return SUCCESS;
|
||||
}
|
||||
|
||||
ZEND_API int zend_startup_module_ex(zend_module_entry *module TSRMLS_DC)
|
||||
{
|
||||
int name_len;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue