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 #8058

php 5 cnstants undefined when running on php 4

Details

Submitted2006-06-28 15:16 UTC
Fromgiunta dot gaetano at sea-aeroportimilano dot it
Assignedfarell
StatusClosed
PackagePHP_CompatInfo
PHP Version4.4.2
OSwindows 2000
Roadmaps(Not assigned)

Comments

[2006-06-28 15:16 UTC] giunta dot gaetano at sea-aeroportimilano dot it

Description:
------------
When running the compatinfo test on php 4.4, the php 5 constants are undefined.

qwik fix: on line 365 of compatinfo.php you might add:

if (!defined('T_ABSTRACT'))
{
define('T_ABSTRACT', 345);
define('T_CATCH', 337);
define('T_FINAL' => 344);
define('T_INSTANCEOF' => 288);
define('T_PRIVATE' => 343);
define('T_PROTECTED' => 342);
define('T_PUBLIC' => 341);
define('T_THROW' => 338);
define('T_TRY' => 336);
define('T_CLONE' => 298);
define('T_INTERFACE' => 353);
define('T_IMPLEMENTS' => 355);
}