com php-src: Added EXPECTED(). Most functions have arguments.: Zend/zend_execute.h
| From: | Dmitry Stogov | Date: | Wed, 17 Dec 2014 09:16:02 +0000 |
| Subject: | com php-src: Added EXPECTED(). Most functions have arguments.: Zend/zend_execute.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-83774@lists.php.net to get a copy of this message | ||
Commit: 4d21ad31dd79521f17f92809a1c6bef0c043fea8
Author: Dmitry Stogov <dmitry@zend.com> Wed, 17 Dec 2014 12:16:02 +0300
Parents: cf84bf53ea13ef70dd6145a743e093b0d3156332
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=4d21ad31dd79521f17f92809a1c6bef0c043fea8
Log:
Added EXPECTED(). Most functions have arguments.
Changed paths:
M Zend/zend_execute.h
Diff:
diff --git a/Zend/zend_execute.h b/Zend/zend_execute.h
index fdf07d5..455ff50 100644
--- a/Zend/zend_execute.h
+++ b/Zend/zend_execute.h
@@ -192,7 +192,7 @@ static zend_always_inline void zend_vm_stack_free_args(zend_execute_data *call T
{
uint32_t num_args = ZEND_CALL_NUM_ARGS(call);
- if (num_args > 0) {
+ if (EXPECTED(num_args > 0)) {
zval *end = ZEND_CALL_ARG(call, 1);
zval *p = end + num_args;