From: petercowburn at gmail dot com Operating system: OS X PHP version: 5.3.0RC2 PHP Bug Type: SPL related Bug description: SplFileInfo::getPathinfo no returning info of path
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 bug report at http://bugs.php.net/?id=48361&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=48361&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=48361&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=48361&r=trysnapshot60
Fixed in CVS:
http://bugs.php.net/fix.php?id=48361&r=fixedcvs
Fixed in CVS and need be documented:
http://bugs.php.net/fix.php?id=48361&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=48361&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=48361&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=48361&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=48361&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=48361&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=48361&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=48361&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=48361&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=48361&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48361&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=48361&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=48361&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=48361&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=48361&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=48361&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=48361&r=mysqlcfg
