|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-09-01 10:26 UTC] derick@php.net
[2004-12-13 01:27 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 21:00:01 2025 UTC |
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)