From 13f16d5690692c263cbe985afab117744d40cbaa Mon Sep 17 00:00:00 2001 From: Moriyoshi Koizumi Date: Wed, 29 Oct 2003 18:48:37 +0000 Subject: [PATCH] MFB(r-1.109.2.12): A possible fix for bug #26026 --- 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 25f96064e9..58f3cd8ee1 100644 --- a/ext/standard/dir.c +++ b/ext/standard/dir.c @@ -401,7 +401,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