]> granicus.if.org Git - php/commitdiff
Fixed bug #28649 (Proper glob() return value on Linux when there are no
authorIlia Alshanetsky <iliaa@php.net>
Sun, 6 Jun 2004 16:21:11 +0000 (16:21 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Sun, 6 Jun 2004 16:21:11 +0000 (16:21 +0000)
matches).

ext/standard/dir.c

index e665e5c3bbe2965a97f9fd73a190a1b082762968..9a3c1c87be2be87db61e4a2550c8b29a41893425 100644 (file)
@@ -400,7 +400,7 @@ PHP_FUNCTION(glob)
                         * doesn't. This ensure that if no match is found, an empty array
                         * is always returned so it can be used without worrying in e.g.
                         * foreach() */
-#if __linux__
+#ifndef __linux__
                        RETURN_FALSE;
 #else
                        array_init(return_value);