PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

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));