mirror of
https://github.com/php/php-src.git
synced 2024-09-23 02:47:26 +00:00
- fix bug #47358, glob returns error, should be empty array()
This commit is contained in:
commit
2fb7cd30c5
@ -492,9 +492,7 @@ PHP_FUNCTION(glob)
|
||||
if (!globbuf.gl_pathc || !globbuf.gl_pathv) {
|
||||
no_results:
|
||||
if (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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user