From: Ilia Alshanetsky Date: Sun, 6 Jun 2004 16:21:11 +0000 (+0000) Subject: Fixed bug #28649 (Proper glob() return value on Linux when there are no X-Git-Tag: php-5.0.0RC3~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9c1e6685933dc0d2477e1629d1d3ed1da55d11c7;p=php Fixed bug #28649 (Proper glob() return value on Linux when there are no matches). --- diff --git a/ext/standard/dir.c b/ext/standard/dir.c index e665e5c3bb..9a3c1c87be 100644 --- a/ext/standard/dir.c +++ b/ext/standard/dir.c @@ -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);