#43461 [Opn->Bgs]: glob() returns false
| From: | iliaa@php.net | Date: | Sun, 02 Dec 2007 16:06:03 +0000 |
| Subject: | #43461 [Opn->Bgs]: glob() returns false | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-120279@lists.php.net to get a copy of this message | ||
ID: 43461
Updated by: iliaa@php.net
Reported By: marcin at artigo dot pl
-Status: Open
+Status: Bogus
Bug Type: Directory function related
Operating System: Linux 2.6.21.5
PHP Version: 5.2.5
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
If Zend_Cache does not work, it should be fixed.
Previous Comments:
------------------------------------------------------------------------
[2007-11-30 11:08:05] marcin at artigo dot pl
Directory exists, but glob finds no files.
If it considered an error why isn't it printed?
I believe it should return an empty array/display an error/or this
issue should be documented here http://php.net/glob
We are talking here about Zend_Cache not working because of this.
------------------------------------------------------------------------
[2007-11-30 10:56:42] jani@php.net
Please check bug #43407 as I believe this is the same issue, and not a
bug.
------------------------------------------------------------------------
[2007-11-30 10:46:25] marcin at artigo dot pl
Description:
------------
glob() returns false instead of an empty array
No error occurs.
Reproduce code:
---------------
$ret = glob("*.foo");
var_dump($ret);
Expected result:
----------------
array
empty
Actual result:
--------------
bool(false)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43461&edit=1