|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #53346 Wrong Spl class
Submitted: 2010-11-18 15:55 UTC Modified: 2010-11-18 16:00 UTC
From: klaimath at libero dot it Assigned: salathe (profile)
Status: Closed Package: SPL related
PHP Version: 5.3.3 OS: Ubuntu 10.10
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: klaimath at libero dot it
New email:
PHP Version: OS:


 [2010-11-18 15:55 UTC] klaimath at libero dot it
From manual page:

The following code is wrong:

$info = new SplInfo('/path/to/symlink');
if ($info->isLink()) {
    echo 'The real path is '.$info->getRealPath();

The correct syntax for SplFileInfo class instance is $info = new SplFileInfo not $info = new SplInfo

Actual result:
$info = new SplFileInfo('/path/to/symlink');
if ($info->isLink()) {
    echo 'The real path is '.$info->getRealPath();


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-11-18 15:59 UTC]
Automatic comment from SVN on behalf of salathe
Log: Typo fix (SplInfo to SplFileInfo) (closes doc #53346)
 [2010-11-18 16:00 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: salathe
 [2010-11-18 16:00 UTC]
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
Thank you for the report, and for helping us make PHP better.

 [2010-11-18 16:02 UTC]
Urgh the automated message was the wrong one. 

This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Dec 05 15:03:33 2021 UTC