From: rossen dot radonov at ecad dot tu-sofia dot bg
Operating system: Solaris 8
PHP version: 4.3.9RC2
PHP Bug Type: *Directory/Filesystem functions
Bug description: glob() returns false instead of an ampty array, again
Description:
------------
glob() returns false instead of an empty array.
I was using version 4.3.7 and everything was OK. Then I upgraded to
4.3.9RC1 and 4.3.9RC2 and the problem appeared.
I looked in the bug-report database and saw simillar problems, then
downloaded the php4-STABLE-200409010630 version, compiled it and the
results were the same.
Is this a bug or a normal behavior?
Reproduce code:
---------------
$files = glob("/some_empty_dir/*");
var_dump($files);
Expected result:
----------------
array(0) {
}
Actual result:
--------------
bool(false)
--
Edit bug report at http://bugs.php.net/?id=29928&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29928&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=29928&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=29928&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=29928&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=29928&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=29928&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=29928&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=29928&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=29928&r=support
Expected behavior: http://bugs.php.net/fix.php?id=29928&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=29928&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=29928&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=29928&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29928&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=29928&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=29928&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=29928&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29928&r=float