From: Moriyoshi Koizumi Date: Wed, 29 Oct 2003 18:48:37 +0000 (+0000) Subject: MFB(r-1.109.2.12): A possible fix for bug #26026 X-Git-Tag: RELEASE_2_0_0RC1~16 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=13f16d5690692c263cbe985afab117744d40cbaa;p=php MFB(r-1.109.2.12): A possible fix for bug #26026 --- 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; }