diff options
| -rw-r--r-- | ext/standard/dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/dir.c b/ext/standard/dir.c index ad122e4f80..1ab92e6383 100644 --- a/ext/standard/dir.c +++ b/ext/standard/dir.c @@ -467,7 +467,7 @@ no_results: array_init(return_value); for (n = 0; n < globbuf.gl_pathc; n++) { if (PG(safe_mode) || (PG(open_basedir) && *PG(open_basedir))) { - if (PG(safe_mode) && (!php_checkuid(globbuf.gl_pathv[n], NULL, CHECKUID_CHECK_FILE_AND_DIR))) { + if (PG(safe_mode) && (!php_checkuid_ex(globbuf.gl_pathv[n], NULL, CHECKUID_CHECK_FILE_AND_DIR, CHECKUID_NO_ERRORS))) { basedir_limit = 1; continue; } else if (php_check_open_basedir_ex(globbuf.gl_pathv[n], 0 TSRMLS_CC)) { |
