]> granicus.if.org Git - php/commitdiff
Keep the compile time condition for the label use
authorAnatol Belski <ab@php.net>
Fri, 17 Nov 2017 17:46:57 +0000 (18:46 +0100)
committerAnatol Belski <ab@php.net>
Fri, 17 Nov 2017 17:46:57 +0000 (18:46 +0100)
ext/standard/dir.c

index 797ea1f7017b93082b611290fb89e3b78ec39e98..cc518a40e61bb6dbfdbcadda3e768cb3d2ec69c6 100644 (file)
@@ -493,7 +493,9 @@ PHP_FUNCTION(glob)
 
        /* now catch the FreeBSD style of "no matches" */
        if (!globbuf.gl_pathc || !globbuf.gl_pathv) {
+#ifdef GLOB_NOMATCH
 no_results:
+#endif
 #ifndef PHP_WIN32
                /* Paths containing '*', '?' and some other chars are
                illegal on Windows but legit on other platforms. For