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

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

 New Comment:

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.

I can not reproduce this, please try the latest master snap also.


Previous Comments:
------------------------------------------------------------------------
[2013-02-26 07:31:32] littlexiang521 at gmail dot com

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

------------------------------------------------------------------------
[2013-02-26 07:30:41] littlexiang521 at gmail dot com

sorry for the typo, should be:

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

------------------------------------------------------------------------
[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