Edit report at http://bugs.php.net/bug.php?id=48767&edit=1

 ID:                 48767
 Patch added by:     sala...@php.net
 Reported by:        helmertz at gmail dot com
 Summary:            SplFileInfo::getExtension()
 Status:             Open
 Type:               Feature/Change Request
 Package:            Feature/Change Request
 Operating System:   All
 PHP Version:        5.3.0
 Block user comment: N
 Private report:     N

 New Comment:

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


Previous Comments:
------------------------------------------------------------------------
[2010-11-17 22:34:53] sala...@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

------------------------------------------------------------------------
[2009-07-02 06:57:20] 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.


------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=48767&edit=1

Reply via email to