Fixed bug #28355 (glob() does not return error on Linux when it does not

have permission to open the directory).
This commit is contained in:
Ilia Alshanetsky 2004-05-11 13:34:19 +00:00
parent 9540037bb7
commit 1842676706

View File

@ -400,8 +400,12 @@ 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__
RETURN_FALSE;
#else
array_init(return_value);
return;
#endif
}
#endif
RETURN_FALSE;