Home » PHP » PHP_CompatInfo » Bug #8058
php 5 cnstants undefined when running on php 4
Details
| Submitted | 2006-06-28 15:16 UTC |
|---|---|
| From | giunta dot gaetano at sea-aeroportimilano dot it |
| Assigned | farell |
| Status | Closed |
| Package | PHP_CompatInfo |
| PHP Version | 4.4.2 |
| OS | windows 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);
}