com php-src: Eliminated useless check in FAST_ZPP (this also fixed few wrong -Wmaybe-uninitialized compila tion warnings) (Remi): Zend/zend_API.h

From: Date: Tue, 19 May 2015 08:06:01 +0000
Subject: com php-src: Eliminated useless check in FAST_ZPP (this also fixed few wrong -Wmaybe-uninitialized compila tion warnings) (Remi): Zend/zend_API.h
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-86800@lists.php.net to get a copy of this message
Commit: b3d053b036e564e9bce6df705de8710823a43016 Author: Dmitry Stogov <dmitry@zend.com> Tue, 19 May 2015 11:06:01 +0300 Parents: f378b9a998061cd2bbe3e81601aa64be8463ac5b Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=b3d053b036e564e9bce6df705de8710823a43016 Log: Eliminated useless check in FAST_ZPP (this also fixed few wrong -Wmaybe-uninitialized compilation warnings) (Remi) Changed paths: M Zend/zend_API.h Diff: diff --git a/Zend/zend_API.h b/Zend/zend_API.h index f61091a..1c1aafb 100644 --- a/Zend/zend_API.h +++ b/Zend/zend_API.h @@ -1010,7 +1010,8 @@ ZEND_API void ZEND_FASTCALL zend_wrong_callback_error(int severity, int num, cha Z_PARAM_PROLOGUE(separate); \ zend_parse_arg_zval_deref(_arg, &dest, check_null); \ } else { \ - if (UNEXPECTED(++_i >_num_args)) break; \ + ++_i; \ + if (_optional && UNEXPECTED(_i >_num_args)) break; \ _real_arg++; \ zend_parse_arg_zval(_real_arg, &dest, check_null); \ }

« previous php.cvs (#86800) next »