ID: 46421 Updated by: [EMAIL PROTECTED] Reported By: daniel dot gorski at develnet dot org -Status: Assigned +Status: Closed Bug Type: SPL related Operating System: Linux PHP Version: 5.3.0alpha2 Assigned To: colder New Comment:
This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2008-10-29 14:25:52] daniel dot gorski at develnet dot org 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) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=46421&edit=1
