com php-src: fix datatype mismatches: sapi/cgi/cgi_main.c
| From: | Anatol Belski | Date: | Tue, 02 Dec 2014 08:15:08 +0000 |
| Subject: | com php-src: fix datatype mismatches: sapi/cgi/cgi_main.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-83472@lists.php.net to get a copy of this message | ||
Commit: 1172aff298c63bc71765eb53b1c13e81428b4332
Author: Anatol Belski <ab@php.net> Mon, 1 Dec 2014 14:30:02 +0100
Parents: f15463bf39dcdab2cb7c576701fbd4891e6aa03b
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=1172aff298c63bc71765eb53b1c13e81428b4332
Log:
fix datatype mismatches
Changed paths:
M sapi/cgi/cgi_main.c
Diff:
diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c
index 224239c..23374e7 100644
--- a/sapi/cgi/cgi_main.c
+++ b/sapi/cgi/cgi_main.c
@@ -1735,7 +1735,8 @@ int main(int argc, char *argv[])
{
int free_query_string = 0;
int exit_status = SUCCESS;
- int cgi = 0, c, i, len;
+ int cgi = 0, c, i;
+ size_t len;
zend_file_handle file_handle;
char *s;
@@ -1745,7 +1746,7 @@ int main(int argc, char *argv[])
int orig_optind = php_optind;
char *orig_optarg = php_optarg;
char *script_file = NULL;
- int ini_entries_len = 0;
+ size_t ini_entries_len = 0;
/* end of temporary locals */
#ifdef ZTS
@@ -1849,7 +1850,7 @@ int main(int argc, char *argv[])
break;
case 'd': {
/* define ini entries on command line */
- int len = strlen(php_optarg);
+ size_t len = strlen(php_optarg);
char *val;
if ((val = strchr(php_optarg, '='))) {
@@ -2290,7 +2291,7 @@ consult the installation file that came with this distribution, or visit \n\
* test.php v1=test "v2=hello world!"
*/
if (!SG(request_info).query_string && argc > php_optind) {
- int slen = strlen(PG(arg_separator).input);
+ size_t slen = strlen(PG(arg_separator).input);
len = 0;
for (i = php_optind; i < argc; i++) {
if (i < (argc - 1)) {