diff options
author | Xinchen Hui <laruence@gmail.com> | 2014-02-21 16:56:23 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@gmail.com> | 2014-02-21 16:56:23 +0800 |
commit | e193944b3eec77a58d8eb727cb0364de6b70dd72 (patch) | |
tree | 48082f4f03e8f726644be3fc3650901d690eef28 /Zend/zend_interfaces.c | |
parent | 8211026fa7d34b34262d7a3d84395bd83aeb74f4 (diff) | |
download | php-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.c | 2 |
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 */ |