FAQ
Edit report at https://pear.php.net/bugs/bug.php?id=18881&edit=1

ID: 18881
Updated by: pear@laurent-laville.org
Reported By: jan at setasign dot de
Summary: Parameter count isn't recognized
Status: Open
Type: Bug
Package: PHP_CompatInfo
Operating System: Windows 2003
Package Version: 1.9.0
PHP Version: 5.2.1
Roadmap Versions:
New Comment:

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


Previous Comments:
------------------------------------------------------------------------

[2011-09-28 14:20:18] setasign

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

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedJan 7, '12 at 2:33p
activeJan 7, '12 at 2:33p
posts1
users1
websitepear.php.net

1 user in discussion

Pear: 1 post

People

Translate

site design / logo © 2021 Grokbase