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 » Testing » PHPUnit2 » Bug #9159

class_exists and interface_exists trigger __autoload

Details

Submitted2006-10-25 09:31 UTC
Fromtaco at procurios dot nl
Assignedsebastian
StatusClosed
PackagePHPUnit2
PHP Version5.1.6
OSlinux
Roadmaps(Not assigned)

Comments

[2006-10-25 09:31 UTC] taco at procurios dot nl

Description:
------------
PHPUnit2 uses class_exists and interface_exists without the second parameter set to false. This will cause __autoload functions to fail.

[2006-10-25 14:55 UTC] sebastian at php dot net

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/PHPUnit2

Please get PHPUnit from phpunit.de as explained at http://www.phpunit.de/pocket_guide/3.0/en/installation.html.

[2006-10-26 07:28 UTC] taco at procurios dot nl

The download you gave points to version 3.0.0alpha11, exactly the same as I have installed locally. In this version still all calls to class_exists/interface_exists have no second parameter set to false.. am I missing something?

[2006-10-26 07:29 UTC] sebastian at php dot net

I told you to follow the steps outlined in http://www.phpunit.de/pocket_guide/3.0/en/installation.html.

However, the PEAR issue tracker added an URL pointing to an outdated version of PHPUnit automatically.