--TEST-- SPL: Bug #48361 SpleFileInfo::getPathName should return the dirname's path --FILE-- getRealPath()); var_dump($info->getPathInfo()->getRealPath()); ?> --EXPECTF-- string(%d) "%stests%sbug48361.php" string(%d) "%stests"