From 9c1e6685933dc0d2477e1629d1d3ed1da55d11c7 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Sun, 6 Jun 2004 16:21:11 +0000 Subject: [PATCH] Fixed bug #28649 (Proper glob() return value on Linux when there are no matches). --- ext/standard/dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.50.1