diff options
author | Pierre Joye <pierre.php@gmail.com> | 2014-05-15 08:24:07 +0200 |
---|---|---|
committer | Pierre Joye <pierre.php@gmail.com> | 2014-05-15 08:24:07 +0200 |
commit | 89a6d2bc53fb83e59a2fe8ac0b5ece641980a7ea (patch) | |
tree | f77308734e3f0ae024c5900a852e10b2138e72d0 /Zend/zend_API.c | |
parent | 3ae86b9cce0df92069d971feef2af526cdabf7f5 (diff) | |
parent | c446e575880d503921a795ee7cc4126b8b84457b (diff) | |
download | php-git-89a6d2bc53fb83e59a2fe8ac0b5ece641980a7ea.tar.gz |
Merge branch 'phpng' of git.php.net:php-src into phpng
# By Dmitry Stogov
# Via Dmitry Stogov
* 'phpng' of git.php.net:php-src:
ext/soap support for phpng (incomplete - just compilable)
Diffstat (limited to 'Zend/zend_API.c')
-rw-r--r-- | Zend/zend_API.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Zend/zend_API.c b/Zend/zend_API.c index f1e9614a22..d4df4d3729 100644 --- a/Zend/zend_API.c +++ b/Zend/zend_API.c @@ -1757,6 +1757,20 @@ ZEND_API int add_property_double_ex(zval *arg, const char *key, uint key_len, do } /* }}} */ +ZEND_API int add_property_str_ex(zval *arg, const char *key, uint key_len, zend_string *str TSRMLS_DC) /* {{{ */ +{ + zval tmp; + zval z_key; + + ZVAL_STR(&tmp, str); + ZVAL_STRINGL(&z_key, key, key_len); + Z_OBJ_HANDLER_P(arg, write_property)(arg, &z_key, &tmp, -1 TSRMLS_CC); +//??? zval_ptr_dtor(&tmp); /* write_property will add 1 to refcount */ + zval_ptr_dtor(&z_key); + return SUCCESS; +} +/* }}} */ + ZEND_API int add_property_string_ex(zval *arg, const char *key, uint key_len, const char *str TSRMLS_DC) /* {{{ */ { zval tmp; |