From: Andi Gutmans Date: Wed, 25 Apr 2001 05:43:30 +0000 (+0000) Subject: - Nuke warning. This signed/unsigned stuff gets really annoying sometimes. X-Git-Tag: php-4.0.6RC1~323 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=502b4efb7daee150c17b6365448ab0796b1c091a;p=php - Nuke warning. This signed/unsigned stuff gets really annoying sometimes. --- diff --git a/ext/standard/filestat.c b/ext/standard/filestat.c index b3443a7a8c..51f9b56409 100644 --- a/ext/standard/filestat.c +++ b/ext/standard/filestat.c @@ -447,7 +447,7 @@ PHP_FUNCTION(clearstatcache) /* }}} */ -static void php_stat(const char *filename, int filename_length, int type, pval *return_value) +static void php_stat(const char *filename, php_stat_len filename_length, int type, pval *return_value) { struct stat *stat_sb; int rmask=S_IROTH,wmask=S_IWOTH,xmask=S_IXOTH; /* access rights defaults to other */ @@ -637,7 +637,7 @@ void name(INTERNAL_FUNCTION_PARAMETERS) { \ WRONG_PARAM_COUNT; \ } \ convert_to_string_ex(filename); \ - php_stat(Z_STRVAL_PP(filename), Z_STRLEN_PP(filename), funcnum, return_value); \ + php_stat(Z_STRVAL_PP(filename), (php_stat_len) Z_STRLEN_PP(filename), funcnum, return_value); \ } /* {{{ proto int fileperms(string filename)