PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » PEAR » PEAR_PackageFileManager » Bug #6028

incompatability with php5

Details

Submitted2005-11-21 22:48 UTC
Fromtomas dot varaneckas at gmail dot com
Assignedfarell
StatusClosed
PackagePEAR_PackageFileManager
PHP Version5.0.5
OSLinux Debian
Roadmaps(Not assigned)

Comments

[2005-11-21 22:48 UTC] tomas dot varaneckas at gmail dot com

Description:
------------
// $Id: File.php,v 1.21 2005/03/28 06:37:35 cellog Exp $

File.php line 108:
$ext = array_pop(explode('.', $file));

as php5 requires reference as input for array_pop, function output cannot be assigned.

Quick fix:
$ext = array_pop($array = explode('.', $file));