: Bug #51763 :: SplFileInfo::getType()
| Bug #51763 | SplFileInfo::getType() | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Submitted: | 2010-05-07 03:36 UTC | Modified: | 2010-09-06 16:58 UTC |
|
||||||||||
| From: | v-sumada at microsoft dot com | Assigned: | pajoye (profile) | |||||||||||
| Status: | Closed | Package: | SPL related | |||||||||||
| PHP Version: | 5.3.2 | OS: | All windows OS | |||||||||||
| Private report: | No | CVE-ID: | None | |||||||||||
[2010-05-07 03:36 UTC] v-sumada at microsoft dot com
Description: ------------ The SplFileInfo::getType() For Symbolic link returns "dir" which in turn should return "link" .This happens to be in 5.3.2 and occurs on all windows OS. It Correctly returns the type of file referenced which is for Dir and File . <?php $symlinkdir = "/path/to/symlink"; //Symbolic link $syminfo = new SplFileInfo($symlinkdir); var_dump($syminfo->getType()); ?> Expected result :string(4)"Link" Actual result : string(3) "dir" Test script: --------------- <?php $symlinkdir = "/path/to/symlink"; //Symbolic link $syminfo = new SplFileInfo($symlinkdir); var_dump($syminfo->getType()); ?> Expected result: ---------------- string(4)"Link" Actual result: -------------- string(3) "dir"
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2010-05-08 05:05 UTC] cataphract@php.net
[2010-05-08 05:07 UTC] cataphract@php.net
[2010-05-08 07:42 UTC] johannes@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: pajoye
[2010-05-19 07:14 UTC] kalle@php.net
[2010-05-19 10:48 UTC] pajoye@php.net
[2010-09-06 16:58 UTC] pajoye@php.net
-Status: Assigned +Status: Closed
[2010-09-06 16:58 UTC] pajoye@php.net