Regression: getPathInfo() doesn't return parent info

Bug #576910 reported by mycroes
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
php
Fix Committed
Undecided
Unassigned
php5 (Ubuntu)
Fix Released
Undecided
Chuck Short
Declined for Maverick by Mathias Gug
Lucid
Won't Fix
Undecided
Unassigned

Bug Description

Binary package hint: php5

In PHP 5.3.2-1ubuntu4 there's a bug concerning getPathInfo() on the SplFileInfo object. Instead of returning a new SplFileInfo object for the parent directory it returns a SplFileInfo object for the same file. The bug is reported and fixed upstream at http://bugs.php.net/bug.php?id=48361 .

This bug is a regression, PHP 5 under Karmic did not have this issue.

The following patch should fix the issue:
http://svn.php.net/viewvc/php/php-src/trunk/ext/spl/spl_directory.c?r1=298638&r2=298647&view=patch

ViewVC url for the change:
http://svn.php.net/viewvc/php/php-src/trunk/ext/spl/spl_directory.c?r1=298638&r2=298647

I hope this patch will be applied to the PHP 5.3 found in Lucid, the issue will probably break quite some applications.

Related branches

Changed in php5 (Ubuntu):
status: New → Confirmed
Changed in php:
importance: Unknown → Undecided
status: Unknown → New
status: New → Fix Committed
Chuck Short (zulcss)
Changed in php5 (Ubuntu):
status: Confirmed → In Progress
assignee: nobody → Chuck Short (zulcss)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package php5 - 5.3.2-1ubuntu5

---------------
php5 (5.3.2-1ubuntu5) maverick; urgency=low

  * debian/php5-module.ini: Comment should be "#" not ";". (LP: #573436)
  * debian/patches/cherrypick-upstream-51740.diff: Fix acinclude.ac macro check. (LP: #576910)
  * debian/patches/cherrypick-upstream-48361.diff: Fix regression with getPathInfo()
    doesn't return parent info (LP: #576910)
  * debian/patches/session_save_path.patch: ave PHP sessions to
    /var/lib/php rather than /tmp. (LP: #573222)
 -- Chuck Short <email address hidden> Tue, 25 May 2010 10:17:00 -0400

Changed in php5 (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Rolf Leggewie (r0lf) wrote :

lucid has seen the end of its life and is no longer receiving any updates. Marking the lucid task for this ticket as "Won't Fix".

Changed in php5 (Ubuntu Lucid):
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.