Home » Authentication » LiveUser » Bug #7304
Function loadClass calls __autoload indirectly
Details
| Request #7304 | Function loadClass calls __autoload indirectly |
|---|---|
| Submitted | 2006-04-05 11:25 UTC |
| From | markus dot wagner at meduniwien dot ac dot at |
| Assigned | lsmith |
| Status | Closed |
| Package | LiveUser |
| PHP Version | 5.1.2 |
| OS | Suse 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.