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 » Authentication » LiveUser » Bug #7304

Function loadClass calls __autoload indirectly

Details

Request #7304Function loadClass calls __autoload indirectly
Submitted2006-04-05 11:25 UTC
Frommarkus dot wagner at meduniwien dot ac dot at
Assignedlsmith
StatusClosed
PackageLiveUser
PHP Version5.1.2
OSSuse 9.3
Roadmaps(Not assigned)

Comments

[2006-04-05 11:25 UTC] markus dot wagner at meduniwien dot ac dot at

Description:
------------
I want to use LiveUser with www.symfony-project.com , which implements the function __autoload.

If I use LiveUser then the function loadClass is called, but the function class_exists in loadClass calls automaticly the function __autoload from symfony which can not find of course the necessary file.

So I think it is better to change the line http://cvs.php.net/viewcvs.cgi/pear/LiveUser/LiveUser.php?annotate=1.155#l539
From
if (!class_exists($classname)) {
To
if (!class_exists($classname, false)) {

If you prefer another solution, please describe it.

[2006-04-05 13:19 UTC] markus dot wagner at meduniwien dot ac dot at

My workaround is to include the necessary Auth-Container-File manuallly before the login-Methode.