From: Moriyoshi Koizumi Date: Wed, 29 Oct 2003 21:51:22 +0000 (+0000) Subject: MFH(r-1.131): This check's always necessary. X-Git-Tag: php-4.3.5RC1~270 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=227088c36b5fff3c70fa755a6993638ce8b4d134;p=php MFH(r-1.131): This check's always necessary. --- diff --git a/ext/standard/dir.c b/ext/standard/dir.c index 913da98b18..1490aa3678 100644 --- a/ext/standard/dir.c +++ b/ext/standard/dir.c @@ -396,13 +396,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 */