summaryrefslogtreecommitdiff
path: root/Zend/zend_API.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2014-05-15 02:44:47 +0400
committerDmitry Stogov <dmitry@zend.com>2014-05-15 02:44:47 +0400
commitc446e575880d503921a795ee7cc4126b8b84457b (patch)
treef77308734e3f0ae024c5900a852e10b2138e72d0 /Zend/zend_API.c
parent3ae86b9cce0df92069d971feef2af526cdabf7f5 (diff)
downloadphp-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.c14
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;