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

Request #7304 Function loadClass calls __autoload indirectly
Submitted: 2006-04-05 06:25 UTC Modified: 2006-04-09 11:07 UTC
From: markus dot wagner at meduniwien dot ac dot at Assigned: lsmith
Status: Closed Package: LiveUser (version 0.16.10)
PHP Version: 5.1.2 OS: Suse 9.3
Roadmaps: (Not assigned)    
Subscription  


 [2006-04-05 06:25 UTC] markus dot wagner at meduniwien dot ac dot at (Markus Wagner)
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.

Comments

 [2006-04-05 06:29 UTC] lsmith (Lukas Smith)
Tricky issue .. this would cause issues with PHP4, which means we would need to introduce conditional code :(
 [2006-04-05 08: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.
 [2006-04-09 11:07 UTC] lsmith (Lukas Smith)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.