diff options
author | Dmitry Stogov <dmitry@zend.com> | 2014-05-15 02:44:47 +0400 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2014-05-15 02:44:47 +0400 |
commit | c446e575880d503921a795ee7cc4126b8b84457b (patch) | |
tree | f77308734e3f0ae024c5900a852e10b2138e72d0 /Zend/zend_API.c | |
parent | 3ae86b9cce0df92069d971feef2af526cdabf7f5 (diff) | |
download | php-git-c446e575880d503921a795ee7cc4126b8b84457b.tar.gz |
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; |