ID: 11572
Updated by: hholzgra
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: Scripting Engine problem
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

the constructors are called *before* assigning
the results so what do you expect to happen?



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

[2001-06-20 01:44:14] [EMAIL PROTECTED]
class a {
        function a() {
                if(!isset($GLOBALS["b"])) {
                        echo "loading b";
                        $GLOBALS["b"] = new b();
                }
        }
}
class b {
        function b() {
                if(!isset($GLOBALS["a"])) {
                        echo "loading a";
                        $GLOBALS["a"] = new a();
                }
        }
}
# creates an infinite loop
new a();

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



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11572&edit=2


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to