summaryrefslogtreecommitdiff
path: root/Zend/zend_API.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2014-02-21 16:14:42 +0400
committerDmitry Stogov <dmitry@zend.com>2014-02-21 16:14:42 +0400
commit6fbea9ce6a6382d7999b6f6059c16348ee50ecda (patch)
tree3fa61aa8417c63735e66df3fcafba7437a124124 /Zend/zend_API.c
parent51d7c4828a8025c4fedf7b38380d17f7a2464256 (diff)
downloadphp-git-6fbea9ce6a6382d7999b6f6059c16348ee50ecda.tar.gz
Fixed exception constructor
Diffstat (limited to 'Zend/zend_API.c')
-rw-r--r--Zend/zend_API.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/Zend/zend_API.c b/Zend/zend_API.c
index 80eb984b17..e2737a270c 100644
--- a/Zend/zend_API.c
+++ b/Zend/zend_API.c
@@ -3694,6 +3694,15 @@ ZEND_API void zend_update_property_double(zend_class_entry *scope, zval *object,
}
/* }}} */
+ZEND_API void zend_update_property_str(zend_class_entry *scope, zval *object, const char *name, int name_length, zend_string *value TSRMLS_DC) /* {{{ */
+{
+ zval tmp;
+
+ ZVAL_STR(&tmp, STR_COPY(value));
+ zend_update_property(scope, object, name, name_length, &tmp TSRMLS_CC);
+}
+/* }}} */
+
ZEND_API void zend_update_property_string(zend_class_entry *scope, zval *object, const char *name, int name_length, const char *value TSRMLS_DC) /* {{{ */
{
zval tmp;