ID: 32856 Updated by: [EMAIL PROTECTED] Reported By: arjen at mediamonks dot com -Status: Open +Status: Bogus Bug Type: Filesystem function related Operating System: FreeBSD PHP Version: 5CVS-2005-04-27 (dev) New Comment:
According to people who know FreeBSD better this is not a bug. It's just how FreeBSD works. Previous Comments: ------------------------------------------------------------------------ [2005-04-27 15:21:32] [EMAIL PROTECTED] Does NOT happen with Linux. ------------------------------------------------------------------------ [2005-04-27 15:08:01] arjen at mediamonks dot com Description: ------------ file('./'); returns an array with 1 element, containing a string which shows weird characters, but between those are some filenames of files in the directory. Reproduce code: --------------- var_dump(file('./')); Expected result: ---------------- Array(0) { } Actual result: -------------- array(1) { [0]=> string(512) " - lots of characters here - " } ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=32856&edit=1