summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2002-07-13 04:45:21 +0000
committerfoobar <sniper@php.net>2002-07-13 04:45:21 +0000
commite3797ab76a2d3e74d02900cff97db6957294c0e1 (patch)
treee35bef31529b958a97c2bc4759df1a06166af322 /ext
parent6a42e635ca2bebb9c147c6bbb0e867a2e5a6113f (diff)
downloadphp-git-e3797ab76a2d3e74d02900cff97db6957294c0e1.tar.gz
Fixed bug: #16638.
Diffstat (limited to 'ext')
-rw-r--r--ext/standard/file.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/standard/file.c b/ext/standard/file.c
index 7fd6181e87..47b4cac885 100644
--- a/ext/standard/file.c
+++ b/ext/standard/file.c
@@ -1496,7 +1496,6 @@ PHPAPI PHP_FUNCTION(fseek)
/* }}} */
/* {{{ proto bool mkdir(string pathname[, int mode])
Create a directory */
-
PHP_FUNCTION(mkdir)
{
int dir_len, ret;
@@ -1507,7 +1506,7 @@ PHP_FUNCTION(mkdir)
return;
}
- if (PG(safe_mode) &&(!php_checkuid(dir, NULL, CHECKUID_ALLOW_ONLY_DIR))) {
+ if (PG(safe_mode) && (!php_checkuid(dir, NULL, CHECKUID_CHECK_FILE_AND_DIR))) {
RETURN_FALSE;
}