Bug #53460 [Fbk->NoF]: glob() returns false for a pattern that matches zero files
| From: | php-bugs at lists dot php dot net | Date: | Sun, 04 Sep 2016 04:22:24 +0000 |
| Subject: | Bug #53460 [Fbk->NoF]: glob() returns false for a pattern that matches zero files | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-203774@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=53460&edit=1
ID: 53460
Updated by: php-bugs@lists.php.net
Reported by: cameel2+php at gmail dot com
Summary: glob() returns false for a pattern that matches zero
files
-Status: Feedback
+Status: No Feedback
Type: Bug
Package: Filesystem function related
Operating System: Arch Linux
PHP Version: 5.3.3
Assigned To: cmb
Private report: N
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2016-08-26 14:34:56] cmb@php.net
Any news?
------------------------------------------------------------------------
[2013-10-01 16:09:59] cameel2+php at gmail dot com
OK, I'll check that and report back later.
It's been three years and I no longer have PHP and Apache installed. I'll have to set it
up again to check this.
------------------------------------------------------------------------
[2013-10-01 15:52:12] mike@php.net
Check your open_basedir. Arch has it enabled by default.
Please enable error_reporting and display_errors before reporting a bug in the future.
------------------------------------------------------------------------
[2011-01-09 18:12:57] cameel2+php at gmail dot com
Right. But in that case the script would be printing both 'false' and 'array'.
It prints only 'false'.
I have just added var_dump() at the end of the test case and now the output is:
false
bool(false)
BTW: I am using PHP 5.3.5 now.
------------------------------------------------------------------------
[2011-01-09 17:56:43] 13550 at free dot fr
"array() == false" is true because array is empty
try var_dump($glob) to be sure that glob does not return an array
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=53460
--
Edit this bug report at https://bugs.php.net/bug.php?id=53460&edit=1