PEAR is archived and read-only

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

Home » PEAR » PEAR » Bug #3533

bug #31347 trips up file_exists() check in infoFromAny

Details

Submitted2005-02-20 15:25 UTC
Fromsmith at backendmedia dot com
Assignedcellog
StatusClosed
PackagePEAR
PHP Version4.3.10
OSwindows
Roadmaps(Not assigned)

Comments

[2005-02-20 15:25 UTC] smith at backendmedia dot com

Description:
------------
Due to bug http://bugs.php.net/bug.php?id=31347 I couldnt run the PEAR_PackageFileManager

I solved the bug for me by adding a check that would prevent any string longer than 255 to be allowed as a file name.

in PEAR/Common.php

function infoFromAny($info)
{
if (is_string($info) && strlen($info) < 255 &&file_exists($info)) {