php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #48767 SplFileInfo::getExtension()
Submitted: 2009-07-02 06:57 UTC Modified: 2011-02-14 15:25 UTC
Votes:4
Avg. Score:4.8 ± 0.4
Reproduced:4 of 4 (100.0%)
Same Version:4 (100.0%)
Same OS:2 (50.0%)
From: helmertz at gmail dot com Assigned: salathe (profile)
Status: Closed Package: SPL related
PHP Version: 5.3.0 OS: All
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: helmertz at gmail dot com
New email:
PHP Version: OS:

 

 [2009-07-02 06:57 UTC] helmertz at gmail dot com
Description:
------------
SplFileInfo::getExtension() should be alias for pathinfo($file, PATHINFO_EXTENSION), to put as much functionality in classes as possible.

Reproduce code:
---------------
---
From manual page: class.splfileinfo
---
$file = new SplFileInfo('monkey.gif');
echo $file->getExtension();

Expected result:
----------------
gif

Actual result:
--------------
Sorry but I don't get this box, I'm too noob.

Patches

getextension-trunk (last revision 2010-11-25 13:09 UTC by salathe@php.net)
splfileinfo-getextension-trunk (last revision 2010-11-17 21:34 UTC by salathe@php.net)

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-11-17 22:34 UTC] salathe@php.net
The following patch has been added/updated:

Patch Name: splfileinfo-getextension-trunk
Revision:   1290029692
URL:        http://bugs.php.net/patch-display.php?bug=48767&patch=splfileinfo-getextension-trunk&revision=1290029692
 [2010-11-25 14:09 UTC] salathe@php.net
The following patch has been added/updated:

Patch Name: getextension-trunk
Revision:   1290690591
URL:        http://bugs.php.net/patch-display.php?bug=48767&patch=getextension-trunk&revision=1290690591
 [2010-12-23 23:32 UTC] salathe@php.net
Automatic comment from SVN on behalf of salathe
Revision: http://svn.php.net/viewvc/?view=revision&revision=306593
Log: Implemented FR #48767 (SplFileInfo::getExtension())
 [2010-12-24 08:29 UTC] salathe@php.net
Automatic comment from SVN on behalf of salathe
Revision: http://svn.php.net/viewvc/?view=revision&revision=306609
Log: NEWS for FR #48767 (SplFileInfo::getExtension())
 [2010-12-25 17:07 UTC] salathe@php.net
-Status: Open +Status: To be documented -Package: Feature/Change Request +Package: SPL related -Assigned To: +Assigned To: salathe
 [2010-12-25 17:07 UTC] salathe@php.net
Committed a few days ago. Tagged as TBD. Merry Christmas.
 [2010-12-25 17:08 UTC] salathe@php.net
-Type: Feature/Change Request +Type: Documentation Problem
 [2011-02-11 23:07 UTC] salathe@php.net
Automatic comment from SVN on behalf of salathe
Revision: http://svn.php.net/viewvc/?view=revision&revision=308264
Log: MFH - Added SplFileInfo::getExtension() (FR #48767)
 [2011-02-11 23:16 UTC] salathe@php.net
Automatic comment from SVN on behalf of salathe
Revision: http://svn.php.net/viewvc/?view=revision&revision=308265
Log: Added SplFileInfo::getExtension() doc (closes #48767)
 [2011-02-14 15:25 UTC] salathe@php.net
-Status: To be documented +Status: Closed
 [2011-02-14 15:25 UTC] salathe@php.net
Docs added in r308265. :)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 11:01:29 2024 UTC