#29246 [NEW]: glob() nomatch returns false, again
| From: | claudio dot frizziero at nereal dot com | Date: | Sun, 18 Jul 2004 15:29:32 +0000 |
| Subject: | #29246 [NEW]: glob() nomatch returns false, again | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-62582@lists.php.net to get a copy of this message | ||
From: claudio dot frizziero at nereal dot com
Operating system: red hat 9
PHP version: 4.3.8
PHP Bug Type: Filesystem function related
Bug description: glob() nomatch returns false, again
Description:
------------
glob() function returns false on error AND on no match
Reproduce code:
---------------
$list = glob("/emptydirectory/*");
var_dump ($list);
Expected result:
----------------
array()
Actual result:
--------------
bool(false)
--
Edit bug report at http://bugs.php.net/?id=29246&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29246&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29246&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=29246&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=29246&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=29246&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=29246&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=29246&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=29246&r=support
Expected behavior: http://bugs.php.net/fix.php?id=29246&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=29246&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=29246&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=29246&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29246&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=29246&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=29246&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=29246&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29246&r=float