com php-src: fix datatype mismatch warns: main/php_open_tem porary_file.c

From: Date: Mon, 27 Oct 2014 15:38:51 +0000
Subject: com php-src: fix datatype mismatch warns: main/php_open_tem porary_file.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-82706@lists.php.net to get a copy of this message
Commit: d8ed6553518913d5a3a84db1a776c7cc0be63101 Author: Anatol Belski <ab@php.net> Mon, 27 Oct 2014 13:18:09 +0100 Parents: 05f812c8d33221e8f9056978861fde479c8b2d79 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=d8ed6553518913d5a3a84db1a776c7cc0be63101 Log: fix datatype mismatch warns Changed paths: M main/php_open_temporary_file.c Diff: diff --git a/main/php_open_temporary_file.c b/main/php_open_temporary_file.c index a52619e...955f0d2 100644 --- a/main/php_open_temporary_file.c +++ b/main/php_open_temporary_file.c @@ -125,7 +125,7 @@ static int php_do_open_temporary_file(const char *path, const char *pfx, char ** } new_state..cwd = estrdup(cwd); - new_state.cwd_length = strlen(cwd); + new_state.cwd_length = (int)strlen(cwd); if (virtual_file_ex(&new_state, path, NULL, CWD_REALPATH TSRMLS_CC)) { efree(new_state.cwd); @@ -200,7 +200,7 @@ PHPAPI const char* php_get_temporary_directory(TSRMLS_D) { char *sys_temp_dir = PG(sys_temp_dir); if (sys_temp_dir) { - int len = strlen(sys_temp_dir); + int len = (int)strlen(sys_temp_dir); if (len >= 2 && sys_temp_dir[len - 1] == DEFAULT_SLASH) { temporary_directory = zend_strndup(sys_temp_dir, len - 1); return temporary_directory;

« previous php.cvs (#82706) next »