ID: 48361
Updated by: [email protected]
Reported By: petercowburn at gmail dot com
-Status: Open
+Status: Verified
Bug Type: SPL related
Operating System: OS X
PHP Version: 5.3.0RC2
-Assigned To:
+Assigned To: colder
Previous Comments:
------------------------------------------------------------------------
[2009-05-22 10:30:21] petercowburn at gmail dot com
Description:
------------
It appears that using PHP5.3.0RC2-dev the SplFileInfo::getPathinfo
method just returns the SplFileInfo object on which it was called rather
than an SplFileInfo object for its path.
Reproduce code:
---------------
<?php
$info = new SplFileInfo('/usr/bin/php');
$parent_info = $info->getPathInfo();
var_dump($parent_info->getRealPath());
?>
Expected result:
----------------
string(8) "/usr/bin"
Actual result:
--------------
string(12) "/usr/bin/php"
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=48361&edit=1