diff options
author | Zeev Suraski <zeev@php.net> | 2000-10-31 18:05:19 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2000-10-31 18:05:19 +0000 |
commit | 7ab46420be1edfd7681e88d864b7a7937bf19714 (patch) | |
tree | 079d52ca9f4d5353edd85e90e34c575bcfa24f68 /ext/standard/filestat.c | |
parent | 00b8b66132788464a9ba68f88951cbdb6f7892df (diff) | |
download | php-git-7ab46420be1edfd7681e88d864b7a7937bf19714.tar.gz |
mode_t fixes
Diffstat (limited to 'ext/standard/filestat.c')
-rw-r--r-- | ext/standard/filestat.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/standard/filestat.c b/ext/standard/filestat.c index 71b88c8e9b..fa70990154 100644 --- a/ext/standard/filestat.c +++ b/ext/standard/filestat.c @@ -324,7 +324,8 @@ PHP_FUNCTION(chown) PHP_FUNCTION(chmod) { pval **filename, **mode; - int ret,imode; + int ret; + mode_t imode; PLS_FETCH(); if (ZEND_NUM_ARGS()!=2 || zend_get_parameters_ex(2,&filename,&mode)==FAILURE) { @@ -341,7 +342,7 @@ PHP_FUNCTION(chmod) if (php_check_open_basedir((*filename)->value.str.val)) RETURN_FALSE; - imode = (*mode)->value.lval; + imode = (mode_t) (*mode)->value.lval; /* in safe mode, do not allow to setuid files. Setuiding files could allow users to gain privileges that safe mode doesn't give them. |