summaryrefslogtreecommitdiff
path: root/Zend/zend_interfaces.c
diff options
context:
space:
mode:
authorXinchen Hui <laruence@gmail.com>2014-02-21 16:56:23 +0800
committerXinchen Hui <laruence@gmail.com>2014-02-21 16:56:23 +0800
commite193944b3eec77a58d8eb727cb0364de6b70dd72 (patch)
tree48082f4f03e8f726644be3fc3650901d690eef28 /Zend/zend_interfaces.c
parent8211026fa7d34b34262d7a3d84395bd83aeb74f4 (diff)
downloadphp-git-e193944b3eec77a58d8eb727cb0364de6b70dd72.tar.gz
Fixed segfault in ext/standard/tests/strings/addslashes_variation1.php
Diffstat (limited to 'Zend/zend_interfaces.c')
-rw-r--r--Zend/zend_interfaces.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Zend/zend_interfaces.c b/Zend/zend_interfaces.c
index 75f6165c3b..ab23590960 100644
--- a/Zend/zend_interfaces.c
+++ b/Zend/zend_interfaces.c
@@ -62,6 +62,7 @@ ZEND_API zval* zend_call_method(zval *object, zend_class_entry *obj_ce, zend_fun
* needed later inside zend_call_function. */
fci.function_table = !object ? EG(function_table) : NULL;
result = zend_call_function(&fci, NULL TSRMLS_CC);
+ zval_ptr_dtor(&fci.function_name);
} else {
zend_fcall_info_cache fcic;
@@ -97,6 +98,7 @@ ZEND_API zval* zend_call_method(zval *object, zend_class_entry *obj_ce, zend_fun
}
fcic.object_ptr = object;
result = zend_call_function(&fci, &fcic TSRMLS_CC);
+ zval_ptr_dtor(&fci.function_name);
}
if (result == FAILURE) {
/* error at c-level */