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

index 58f3cd8ee198731d2b5bf250539c02df6725675a..d31ec400ab56d415c86b1fcdb3188f50c47f12fa 100644 (file)
@@ -399,13 +399,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 */