com php-src: fixed types for num_args at various places : Zend/zend_API.c Zend/zend_compile.h
| From: | Anatol Belski | Date: | Mon, 03 Feb 2014 13:17:15 +0000 |
| Subject: | com php-src: fixed types for num_args at various places : Zend/zend_API.c Zend/zend_compile.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-75891@lists.php.net to get a copy of this message | ||
Commit: 8903518423516670c21d11db9e8dd7c053586c8e
Author: Anatol Belski <ab@php.net> Mon, 3 Feb 2014 14:17:15 +0100
Parents: 472579280f7ab1c462648f731d4274937b102b09
Branches: str_size_and_int64
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=8903518423516670c21d11db9e8dd7c053586c8e
Log:
fixed types for num_args at various places
Changed paths:
M Zend/zend_API.c
M Zend/zend_compile.h
Diff:
diff --git a/Zend/zend_API.c b/Zend/zend_API.c
index 793108b..581d32a 100644
--- a/Zend/zend_API.c
+++ b/Zend/zend_API.c
@@ -2150,7 +2150,7 @@ ZEND_API int zend_register_functions(zend_class_entry *scope, const
zend_functio
/* If types of arguments have to be checked */
if (reg_function->common.arg_info && reg_function->common.num_args) {
- int i;
+ zend_size_t i;
for (i = 0; i < reg_function->common.num_args; i++) {
if (reg_function->common.arg_info[i].class_name ||
reg_function->common.arg_info[i].type_hint) {
diff --git a/Zend/zend_compile.h b/Zend/zend_compile.h
index 140135f..cf41514 100644
--- a/Zend/zend_compile.h
+++ b/Zend/zend_compile.h
@@ -275,8 +275,8 @@ struct _zend_op_array {
zend_class_entry *scope;
zend_uint fn_flags;
union _zend_function *prototype;
- zend_uint num_args;
- zend_uint required_num_args;
+ zend_size_t num_args;
+ zend_size_t required_num_args;
zend_arg_info *arg_info;
/* END of common elements */
@@ -332,8 +332,8 @@ typedef struct _zend_internal_function {
zend_class_entry *scope;
zend_uint fn_flags;
union _zend_function *prototype;
- zend_uint num_args;
- zend_uint required_num_args;
+ zend_size_t num_args;
+ zend_size_t required_num_args;
zend_arg_info *arg_info;
/* END of common elements */
@@ -352,8 +352,8 @@ typedef union _zend_function {
zend_class_entry *scope;
zend_uint fn_flags;
union _zend_function *prototype;
- zend_uint num_args;
- zend_uint required_num_args;
+ zend_size_t num_args;
+ zend_size_t required_num_args;
zend_arg_info *arg_info;
} common;