PHP_CompatInfo 1.7.0 stable version delayed
| From: | Laurent Laville | Date: | Mon, 17 Mar 2008 20:27:43 +0000 |
| Subject: | PHP_CompatInfo 1.7.0 stable version delayed | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-49445@lists.php.net to get a copy of this message | ||
Few days ago, I've detected a bug in PHP_CompatInfo. This bug is here since a long time, but we can see it in action since implementation of the new features of version 1.7.0 (alpha 1)
As I'm not ready to fix it yet, I prefer to delay stable release in next month.
But as I've also applied some changes especially in CLI version, I've decided to publish today a beta version (first one) before stable release planned now for April 17th.
Now a little explain about this bug I've found :
If you parse a file with a class and methods that have same name as standard php functions, these methods will be output in ignored_functions array.
Example : take the HTML_CSS-1.5.1 package and HTML_CSS_Error Class (CSS/Error.php file)
This class has a log public method (line 173+) what is also a php function [1]
In SAPI mode, run this code :
<?php
require_once 'PHP/CompatInfo.php';
$file = '/tmp/HTML_CSS-1.5.1/CSS/Error.php';
$info = new PHP_CompatInfo();
$r = $info->parseFile($file);
var_export($r);
?>
And you will get such result :
array (
'ignored_functions' =>
array (
0 => 'log',
),
'ignored_extensions' =>
array (
),
'ignored_constants' =>
array (
),
'max_version' => '',
'version' => '4.3.0',
'extensions' =>
array (
0 => 'date',
),
'constants' =>
array (
),
'tokens' =>
array (
),
)
Parser do not detect log as class method but as standard user function, and ignore it .
I've planned lot of new releases in next month :
PHP_CompatInfo 1.7.0 stable : April 17
PEAR_Info 1.8.0 stable : April 18
HTML_Progress2 2.4.0 : April 20
Even if I've lot of work I may hear your comment on all theses packages. Don't hesitate , you are welcome !
PEAR bug tracker is also at your provision .
*I'll publish the PHP_CompatInfo 1.7.0b1 in next minutes now*
Regards,
Laurent
[1] http://www.php.net/manual/en/function.log.php