Proposal of new PHP_CompatInfo class 1.1.0

This version is not a major re-write of the class we already know under latest version 1.0.0 (2005-03-15)

But it should be considered as a major bugs fixe that allow to give GOOD results with all PHP versions. Sad to see each times i used PHP_CompatInfo give me always the same result PHP minimum 5.0.0, even when code are all for PHP 4, i've decided to give my contribution to all the community.

Of course, until this contribution proposal was accepted or rejected consider it as an un-official PEAR release.

First, have a look on version 1.0.1 which is only a savage bugs fixe only, without anything else.
See source code, lines changed are marked with light yellow background (lines 355, 360, 365, 367-369, 373-381). Don't forget to have a look also on const_array.php. Tokens number array keys were changed by tokens name.

  1. Source Code of PHP_CompatInfo class 1.0.1
  2. const_array.php of PHP_CompatInfo class 1.0.1
  3. Example 1: parseFile with debug and ignore_functions sets

After applied all PEAR Coding Standard, and latest changes (headers comment block , package structure, ...) that will give the final 1.1.0 ready to download.

Download PHP_CompatInfo-1.1.0.tgz (31 Kb)