Implement add_utf8_property_* API.

This commit is contained in:
Andrei Zmievski 2006-10-17 17:56:42 +00:00
parent 96c237275a
commit 2602e49e65
2 changed files with 138 additions and 0 deletions

View file

@ -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;