mirror of
https://github.com/php/php-src.git
synced 2025-01-27 06:03:45 +08:00
This check's always necessary.
This commit is contained in:
parent
78cb1bfe67
commit
cca80292fe
@ -399,13 +399,11 @@ PHP_FUNCTION(glob)
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
#ifndef GLOB_NOMATCH
|
||||
/* now catch the FreeBSD style of "no matches" */
|
||||
if (!globbuf.gl_pathc || !globbuf.gl_pathv) {
|
||||
array_init(return_value);
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* we assume that any glob pattern will match files from one directory only
|
||||
so checking the dirname of the first match should be sufficient */
|
||||
|
Loading…
Reference in New Issue
Block a user