Edit report at https://bugs.php.net/bug.php?id=64301&edit=1

 ID:                 64301
 User updated by:    littlexiang521 at gmail dot com
 Reported by:        littlexiang521 at gmail dot com
 Summary:            trigger __get() in __get() causes seg fault
 Status:             Open
 Type:               Bug
 Package:            FPM related
 Operating System:   CentOS 6.2
-PHP Version:        5.4.12
+PHP Version:        5.4.10
 Block user comment: N
 Private report:     N

 New Comment:

sorry for the typo, should be:

$obj = new a();
$a->foofoo;


Previous Comments:
------------------------------------------------------------------------
[2013-02-26 07:28:48] littlexiang521 at gmail dot com

Description:
------------
class a{
    public function __get($name)
    {
        switch ($name){
            case 'foo':
                return 'bar';
            case 'foofoo':
                return $this->foo;
        }
    }
}
$obj = new $a();
$a->foofoo;

works with 5.3.x, but not with 5.4.x



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



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=64301&edit=1

Reply via email to