- fix bug #47358, glob returns error, should be empty array()

This commit is contained in:
Pierre Joye 2013-01-08 15:02:04 +01:00
parent bcb3ad043a
commit 50ceeb9f75

View file

@ -496,9 +496,7 @@ PHP_FUNCTION(glob)
if (!globbuf.gl_pathc || !globbuf.gl_pathv) {
no_results:
if (PG(safe_mode) || (PG(open_basedir) && *PG(open_basedir))) {
struct stat s;
if (0 != VCWD_STAT(pattern, &s) || S_IFDIR != (s.st_mode & S_IFMT)) {
if (php_check_open_basedir_ex(pattern, 0 TSRMLS_CC)) {
RETURN_FALSE;
}
}