cvs: ZendEngine2 / zend_reflection_api.c

From: Date: Mon, 27 Sep 2004 09:01:20 +0000
Subject: cvs: ZendEngine2 / zend_reflection_api.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-3038@lists.php.net to get a copy of this message
helly Mon Sep 27 05:01:20 2004 EDT Modified files: /ZendEngine2 zend_reflection_api.c Log: - Fix warnings http://cvs.php.net/diff.php/ZendEngine2/zend_reflection_api.c?r1=1.126&r2=1.127&ty=u Index: ZendEngine2/zend_reflection_api.c diff -u ZendEngine2/zend_reflection_api.c:1.126 ZendEngine2/zend_reflection_api.c:1.127 --- ZendEngine2/zend_reflection_api.c:1.126 Thu Sep 23 14:37:53 2004 +++ ZendEngine2/zend_reflection_api.c Mon Sep 27 05:01:18 2004 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_reflection_api.c,v 1.126 2004/09/23 18:37:53 helly Exp $ */ +/* $Id: zend_reflection_api.c,v 1.127 2004/09/27 09:01:18 helly Exp $ */ #include "zend.h" #include "zend_API.h" #include "zend_exceptions.h" @@ -145,8 +145,8 @@ /* Struct for parameters */ typedef struct _parameter_reference { - int offset; - int required; + zend_uint offset; + zend_uint required; struct _zend_arg_info *arg_info; zend_function *fptr; } parameter_reference; @@ -504,7 +504,7 @@ /* }}} */ /* {{{ _parameter_string */ -static void _parameter_string(string *str, zend_function *fptr, struct _zend_arg_info *arg_info, int offset, int required, char* indent TSRMLS_DC) +static void _parameter_string(string *str, zend_function *fptr, struct _zend_arg_info *arg_info, zend_uint offset, zend_uint required, char* indent TSRMLS_DC) { string_printf(str, "Parameter #%d [ ", offset); if (offset >= required) { @@ -559,9 +559,8 @@ /* {{{ _function_parameter_string */ static void _function_parameter_string(string *str, zend_function *fptr, char* indent TSRMLS_DC) { - zend_uint i; struct _zend_arg_info *arg_info = fptr->common.arg_info; - int required = fptr->common.required_num_args; + zend_uint i, required = fptr->common.required_num_args; if (!arg_info) { return; @@ -863,7 +862,7 @@ /* }}} */ /* {{{ reflection_parameter_factory */ -static void reflection_parameter_factory(zend_function *fptr, struct _zend_arg_info *arg_info, int offset, int required, zval *object TSRMLS_DC) +static void reflection_parameter_factory(zend_function *fptr, struct _zend_arg_info *arg_info, zend_uint offset, zend_uint required, zval *object TSRMLS_DC) { reflection_object *intern; parameter_reference *reference; @@ -1437,7 +1436,7 @@ { reflection_object *intern; zend_function *fptr; - int i; + zend_uint i; struct _zend_arg_info *arg_info; METHOD_NOTSTATIC; @@ -1554,12 +1553,12 @@ arg_info = fptr->common.arg_info; if (Z_TYPE_P(parameter) == IS_LONG) { position= Z_LVAL_P(parameter); - if (position < 0 || position >= fptr->common.num_args) { + if (position < 0 || (zend_uint)position >= fptr->common.num_args) { _DO_THROW("The parameter specified by its offset could not be found"); /* returns out of this function */ } } else { - int i; + zend_uint i; position= -1; convert_to_string_ex(&parameter); @@ -1585,7 +1584,7 @@ ref = (parameter_reference*) emalloc(sizeof(parameter_reference)); ref->arg_info = &arg_info[position]; - ref->offset = position; + ref->offset = (zend_uint)position; ref->required = fptr->common.required_num_args; ref->fptr = fptr; intern->ptr = ref;

« previous php.zend-engine.cvs (#3038) next »