com php-src: Internal functions may return (e.g. on wrong arguments) keeping the original return_value. So we have to initialize return_value as
IS_NULL.: Zend/zend _execute_API.c

From: Date: Thu, 06 Mar 2014 09:32:43 +0000
Subject: com php-src: Internal functions may return (e.g. on wrong arguments) keeping the original return_value. So we have to initialize return_value as
IS_NULL.: Zend/zend _execute_API.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-77724@lists.php.net to get a copy of this message
Commit: 8d2fb9d479bf13381d67e400e3b8c7aa28d7a480 Author: Dmitry Stogov <dmitry@zend.com> Thu, 6 Mar 2014 13:32:43 +0400 Parents: 9ae9460bd09b6216cad14c0130b0951626d8b671 Branches: phpng Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=8d2fb9d479bf13381d67e400e3b8c7aa28d7a480 Log: Internal functions may return (e.g. on wrong arguments) keeping the original return_value. So we have to initialize return_value as IS_NULL. Changed paths: M Zend/zend_execute_API.c Diff: diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c index fb214db..7ddb526 100644 --- a/Zend/zend_execute_API.c +++ b/Zend/zend_execute_API.c @@ -932,7 +932,7 @@ int zend_call_function(zend_fcall_info *fci, zend_fcall_info_cache *fci_cache TS EG(opline_ptr) = original_opline_ptr; } else if (EX(function_state).function->type == ZEND_INTERNAL_FUNCTION) { int call_via_handler = (EX(function_state).function->common.fn_flags & ZEND_ACC_CALL_VIA_HANDLER) != 0; -//??? ALLOC_INIT_ZVAL(*fci->retval_ptr_ptr); + ZVAL_NULL(fci->retval); if (EX(function_state).function->common.scope) { EG(scope) = EX(function_state).function->common.scope; }

« previous php.cvs (#77724) next »