#29928 [Opn->Bgs]: glob() returns false instead of an ampty array, again

From: Date: Wed, 01 Sep 2004 08:26:42 +0000
Subject: #29928 [Opn->Bgs]: glob() returns false instead of an ampty array, again
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-65562@lists.php.net to get a copy of this message
ID: 29928 Updated by: derick@php.net Reported By: rossen dot radonov at ecad dot tu-sofia dot bg -Status: Open +Status: Bogus Bug Type: *Directory/Filesystem functions Operating System: Solaris 8 PHP Version: 4.3.9RC2 New Comment: Duplicate of bug #28649 (which was closed). I reopened that one and marking this one as bogus (as it was already reported). Previous Comments: ------------------------------------------------------------------------ [2004-09-01 10:05:44] rossen dot radonov at ecad dot tu-sofia dot bg 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 this bug report at http://bugs.php.net/?id=29928&edit=1

« previous php.bugs (#65562) next »