php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #53449 Case-typo in method name SplFileInfo::getBasename
Submitted: 2010-12-02 10:12 UTC Modified: 2010-12-02 11:28 UTC
From: Simon dot Harhues at zf dot com Assigned: rquadling (profile)
Status: Closed Package: Documentation problem
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: Simon dot Harhues at zf dot com
New email:
PHP Version: OS:

 

 [2010-12-02 10:12 UTC] Simon dot Harhues at zf dot com
Description:
------------
---
From manual page: http://www.php.net/splfileinfo.getbasename#Beispiele
---

In the example the method name "getbaseName" is used. Everywere else this method is named "getBasename". Note that different case is used.

The documentation shout be corrected to "getBasename". Maybe it would be even more consistent to rename the method to "getBaseName".


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-12-02 11:23 UTC] rquadling@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: rquadling
 [2010-12-02 11:23 UTC] rquadling@php.net
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.
 [2010-12-02 11:28 UTC] rquadling@php.net
Automatic comment from SVN on behalf of rquadling
Revision: http://svn.php.net/viewvc/?view=revision&revision=305901
Log: Correctly case getBasename.
Fixes bug #53449
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 20:00:02 2026 UTC