Home » PHP » PHP_CompatInfo » Bug #1361
A PHP 4.3 function is used, but I have 4.2.3
Details
| Submitted | 2004-05-07 09:53 UTC |
|---|---|
| From | powtac at gmx dot de |
| Status | Wont fix |
| Package | PHP_CompatInfo |
| PHP Version | 4.2.2 |
| OS | Linux |
| 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