From 227088c36b5fff3c70fa755a6993638ce8b4d134 Mon Sep 17 00:00:00 2001 From: Moriyoshi Koizumi Date: Wed, 29 Oct 2003 21:51:22 +0000 Subject: [PATCH] MFH(r-1.131): This check's always necessary. --- ext/standard/dir.c | 2 -- 1 file changed, 2 deletions(-) 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 */ -- 2.40.0