]> granicus.if.org Git - php/commitdiff
MFH(r-1.131): This check's always necessary.
authorMoriyoshi Koizumi <moriyoshi@php.net>
Wed, 29 Oct 2003 21:51:22 +0000 (21:51 +0000)
committerMoriyoshi Koizumi <moriyoshi@php.net>
Wed, 29 Oct 2003 21:51:22 +0000 (21:51 +0000)
ext/standard/dir.c

index 913da98b18b98503e0cd2e765a033f3af0070080..1490aa3678356e3fc33b23214c03bcc59de273f0 100644 (file)
@@ -396,13 +396,11 @@ PHP_FUNCTION(glob)
                RETURN_FALSE;
        }
 
-#ifndef GLOB_NOMATCH
        /* now catch the FreeBSD style of "no matches" */
        if (!globbuf.gl_pathc || !globbuf.gl_pathv) {
                array_init(return_value);
                return;
        }
-#endif
 
        /* we assume that any glob pattern will match files from one directory only
           so checking the dirname of the first match should be sufficient */