com php-src: fix datatype mismatches: ext/session/mod_files .c ext/session/session.c
| From: | Anatol Belski | Date: | Tue, 24 Mar 2015 21:02:33 +0000 |
| Subject: | com php-src: fix datatype mismatches: ext/session/mod_files .c ext/session/session.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-85846@lists.php.net to get a copy of this message | ||
Commit: 512429ffc547372c0ddb41d76a0ddb28f3d77685
Author: Anatol Belski <ab@php.net> Tue, 24 Mar 2015 21:24:49 +0100
Parents: 1a00554aafc832daf7db57b6c39120b68be926ba
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=512429ffc547372c0ddb41d76a0ddb28f3d77685
Log:
fix datatype mismatches
Changed paths:
M ext/session/mod_files.c
M ext/session/session.c
Diff:
diff --git a/ext/session/mod_files.c b/ext/session/mod_files.c
index db88b29..f325f3e 100644
--- a/ext/session/mod_files.c
+++ b/ext/session/mod_files.c
@@ -378,7 +378,7 @@ PS_OPEN_FUNC(files)
if (argc > 2) {
errno = 0;
- filemode = ZEND_STRTOL(argv[1], NULL, 8);
+ filemode = (int)ZEND_STRTOL(argv[1], NULL, 8);
if (errno == ERANGE || filemode < 0 || filemode > 07777) {
php_error(E_WARNING, "The second parameter in session.save_path is invalid");
return FAILURE;
diff --git a/ext/session/session.c b/ext/session/session.c
index eed91fc..71d4cd1 100644
--- a/ext/session/session.c
+++ b/ext/session/session.c
@@ -767,8 +767,8 @@ static PHP_INI_MH(OnUpdateHashFunc) /* {{{ */
static PHP_INI_MH(OnUpdateRfc1867Freq) /* {{{ */
{
- zend_long tmp;
- tmp = zend_atoi(new_value->val, new_value->len);
+ int tmp;
+ tmp = zend_atoi(new_value->val, (int)new_value->len);
if(tmp < 0) {
php_error_docref(NULL, E_WARNING, "session.upload_progress.freq must be greater than or
equal to zero");
return FAILURE;