Mantis - Quercus
Viewing Issue Advanced Details
4731 crash always 08-25-11 17:56 06-21-12 00:59
k2s  
nam  
normal  
closed 4.0.14  
unable to reproduce  
none    
none  
0004731: following code doesn't work under Quecus
<?php
class X
{
    function func()
    {
        echo "ok";
    }
}

class Y
{
    function test()
    {
        $this->me = new X();
        $key = "me";
        
        $this->$key->func();
    }
}

$y = new Y();
$y->test();
error message:

test.php:17: Fatal Error: Call to undefined method Y::

Notes
(0005913)
nam   
06-21-12 00:59   
Unable to reproduce for 4.0.29 (upcoming).