Req #48767 [PATCH]: SplFileInfo::getExtension()

From: Date: Wed, 17 Nov 2010 21:34:57 +0000
Subject: Req #48767 [PATCH]: SplFileInfo::getExtension()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-156116@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=48767&edit=1

 ID:                 48767
 Patch added by:     salathe@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: splfileinfo-getextension-trunk
Revision:   1290029692
URL:       
http://bugs.php.net/patch-display.php?bug=48767&patch=splfileinfo-getextension-trunk&revision=1290029692


Previous Comments:
------------------------------------------------------------------------
[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


Thread (4 messages)

« previous php.bugs (#156116) next »