php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #55123 Missing methods of SplFileInfo (not just DirectoryIterator)
Submitted: 2011-07-03 19:23 UTC Modified: 2011-07-04 11:19 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: helmertz at gmail dot com Assigned:
Status: Open Package: SPL related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: helmertz at gmail dot com
New email:
PHP Version: OS:

 

 [2011-07-03 19:23 UTC] helmertz at gmail dot com
Description:
------------
All return values of filetype() should be accessible from DirectoryIterator: 
"fifo, char, dir, block, link, file, socket and unknown" 
(http://php.net/manual/en/function.filetype.php). Currently, I only see 
DirectoryIterator::[isFile|isDir|isLink].


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-07-03 19:26 UTC] felipe@php.net
-Type: Feature/Change Request +Type: Documentation Problem
 [2011-07-04 08:45 UTC] aharvey@php.net
-Type: Documentation Problem +Type: Feature/Change Request -Package: Unknown/Other Function +Package: SPL related
 [2011-07-04 08:45 UTC] aharvey@php.net
This doesn't look like a doc bug to me; the methods themselves would need to be 
added to SPL.
 [2011-07-04 11:19 UTC] helmertz at gmail dot com
-Summary: Missing methods of DirectoryIterator +Summary: Missing methods of SplFileInfo (not just DirectoryIterator)
 [2011-07-04 11:19 UTC] helmertz at gmail dot com
@aharvey: I agree and thanks for finding the correct package. It could be moved 
"upwards" though, to the SplFileInfo-parent class instead of DirectoryIterator.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Oct 15 06:01:26 2024 UTC