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 Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
23 + 11 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Thu Mar 28 23:01:26 2024 UTC