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 » PHP » PHP_CompatInfo » Bug #1361

A PHP 4.3 function is used, but I have 4.2.3

Details

Submitted2004-05-07 09:53 UTC
Frompowtac at gmx dot de
StatusWont fix
PackagePHP_CompatInfo
PHP Version4.2.2
OSLinux
Roadmaps(Not assigned)

Comments

[2004-05-07 09:53 UTC] powtac at gmx dot de

Description:
------------
PHP_CompatInfo 0.8.3

I use PHP 4.2.3. Especialy therefore I tried CompatInfo to fix several errors in my scripts, and to find out witch scripts use functions of 4.3 or higher.

This is a feature request!
Could it be possible to replace 4.3 function in PHP_CompatInfo with 4.0-functions or lower? I think especially for these Versions of PHP this Package is usefull!

Reproduce code:
---------------
require_once 'PHP/CompatInfo.php';

$info = new PHP_CompatInfo;

$folder = '../';

$options = array('file_ext' => array('php'),'ignore_files' => array(__FILE__));

// var_dump($options);
// var_dump($info->parseFolder($folder,$options));

$array = $info->parseFolder($folder,$options);

Expected result:
----------------
Array

Actual result:
--------------
Fatal error: Call to undefined function: file_get_contents() in ...../pear/PEAR/PHP/CompatInfo.php on line 405