diff options
| -rw-r--r-- | Zend/zend_execute_API.c | 4 | 
1 files changed, 4 insertions, 0 deletions
diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c index d5a323de6a..29632a2bad 100644 --- a/Zend/zend_execute_API.c +++ b/Zend/zend_execute_API.c @@ -1082,6 +1082,10 @@ int zend_call_function(zend_fcall_info *fci, zend_fcall_info_cache *fci_cache TS  		{  			INIT_PZVAL(*fci->retval_ptr_ptr);  		}*/ +		if (EG(exception) && fci->retval_ptr_ptr) { +			zval_ptr_dtor(fci->retval_ptr_ptr); +			fci->retval_ptr_ptr = NULL; +		}  	}  	zend_ptr_stack_clear_multiple(TSRMLS_C);  	if (call_via_handler) {  | 
