From: Moriyoshi Koizumi Date: Wed, 29 Oct 2003 18:46:40 +0000 (+0000) Subject: A possible fix for bug #26026. X-Git-Tag: php-4.3.5RC1~271 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=09529af3b0792c731039d71a6b7d5f0df7ff722b;p=php A possible fix for bug #26026. # Actually a revisit of the patch on 1.112, mysteriously backed out on 1.119. --- 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; }