diff options
author | jim winstead <jimw@php.net> | 2002-05-06 17:31:22 +0000 |
---|---|---|
committer | jim winstead <jimw@php.net> | 2002-05-06 17:31:22 +0000 |
commit | 51e2ea5ed2959052080f848eb71f74f06070fc57 (patch) | |
tree | d53541fc20e9a3f91ce7b74f7f504587f6b47cca /ext/standard/file.c | |
parent | d00252cf38221ffe73ff1b931736494c9b4937c7 (diff) | |
download | php-git-51e2ea5ed2959052080f848eb71f74f06070fc57.tar.gz |
fix problem with mkdir() on freebsd
Diffstat (limited to 'ext/standard/file.c')
-rw-r--r-- | ext/standard/file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/file.c b/ext/standard/file.c index 4c42dd985e..702fdcb8c7 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -1496,7 +1496,7 @@ PHPAPI PHP_FUNCTION(fseek) PHP_FUNCTION(mkdir) { int dir_len, ret; - mode_t mode = 0777; + long mode = 0777; char *dir; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &dir, &dir_len, &mode) == FAILURE) { @@ -1511,7 +1511,7 @@ PHP_FUNCTION(mkdir) RETURN_FALSE; } - ret = VCWD_MKDIR(dir, mode); + ret = VCWD_MKDIR(dir, (mode_t)mode); if (ret < 0) { php_error(E_WARNING, "mkdir() failed (%s)", strerror(errno)); RETURN_FALSE; |