From 09529af3b0792c731039d71a6b7d5f0df7ff722b Mon Sep 17 00:00:00 2001 From: Moriyoshi Koizumi Date: Wed, 29 Oct 2003 18:46:40 +0000 Subject: [PATCH] A possible fix for bug #26026. # Actually a revisit of the patch on 1.112, mysteriously backed out on 1.119. --- ext/standard/dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/standard/dir.c b/ext/standard/dir.c index bfec94618e..913da98b18 100644 --- a/ext/standard/dir.c +++ b/ext/standard/dir.c @@ -398,7 +398,7 @@ PHP_FUNCTION(glob) #ifndef GLOB_NOMATCH /* now catch the FreeBSD style of "no matches" */ - if (!globbuf.gl_pathc) { + if (!globbuf.gl_pathc || !globbuf.gl_pathv) { array_init(return_value); return; } -- 2.50.1