Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.9.0

Bug #8058 php 5 cnstants undefined when running on php 4
Submitted: 2006-06-28 15:16 UTC
From: giunta dot gaetano at sea-aeroportimilano dot it Assigned: farell
Status: Closed Package: PHP_CompatInfo (version CVS)
PHP Version: 4.4.2 OS: windows 2000
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 20 + 25 = ?

 
 [2006-06-28 15:16 UTC] giunta dot gaetano at sea-aeroportimilano dot it (Gaetano Giunta)
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); }

Comments

 [2006-06-28 20:16 UTC] farell (Laurent Laville)
i won't use this solution (define constant) It was error that made me feel to submit a patch (see bug #7813). I've removed and avoid now to use token int value to avoid to have imcompatiblity with tokenizer future version. I've found a cool solution that will remove PHP 5 T_* constant and work find with PHP 4.4.2 and PHP 5.1.4 Next step : publish release 1.1.0 in next hour Thanks to notice me this error, i'v forgotten to set error_reporting to E_ALL to see notice errors with PHP4 Laurent
 [2006-06-28 21:00 UTC] farell (Laurent Laville)
Thank you for your bug report. This issue has been fixed in the latest released version of the package, which you can download at http://pear.php.net/get/PHP_CompatInfo