]> granicus.if.org Git - php/commitdiff
MFB(r-1.109.2.12): A possible fix for bug #26026
authorMoriyoshi Koizumi <moriyoshi@php.net>
Wed, 29 Oct 2003 18:48:37 +0000 (18:48 +0000)
committerMoriyoshi Koizumi <moriyoshi@php.net>
Wed, 29 Oct 2003 18:48:37 +0000 (18:48 +0000)
ext/standard/dir.c

index 25f96064e9c241fafd81676ae696d30efb7088de..58f3cd8ee198731d2b5bf250539c02df6725675a 100644 (file)
@@ -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;
        }