|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-11-06 01:11 UTC] colder@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 08:00:02 2025 UTC |
Description: ------------ SplFileInfo() behaves incorrectly when fed with '/', which denotes the root directory. Reproduce code: --------------- $info = new SplFileInfo('/'); var_dump($info->isDir()); var_dump($info->isReadable()); var_dump($info->getType()); Expected result: ---------------- bool(true) bool(true) string(3) "dir" Actual result: -------------- bool(false) bool(false) bool(false)