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

Bug #18881 Parameter count isn't recognized
Submitted: 2011-09-28 18:20 UTC
From: setasign Assigned:
Status: Open Package: PHP_CompatInfo (version 1.9.0)
PHP Version: 5.2.1 OS: Windows 2003
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 : 26 + 36 = ?

 
 [2011-09-28 18:20 UTC] setasign (Jan Slabon)
Description: ------------ The parser doesn't recognized different parameter counts for function/method calls which had changed in different PHP versions. class_exists('whatever', false) should be PHP5 only, while it results in 4.0.0. In PHP 4 this call will create a warning. Test script: --------------- <?php require_once 'PHP/CompatInfo.php'; if (class_exists('whatever', false)) { // do something } $info = new PHP_CompatInfo('null'); $info->parseData(__FILE__); echo $info->getVersion(); Expected result: ---------------- 5.0.0 Actual result: -------------- 4.0.0

Comments

 [2012-01-07 20:34 UTC] farell (Laurent Laville)
A solution exists with PHP_CompatInfo 2 See at https://github.com/llaville/php-compat-info Will be available with future stable release 2.2.0 when PHP 5.3.9 and PHP 5.4.0 will be released too