|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #64301 trigger __get() in __get() causes seg fault
Submitted: 2013-02-26 07:28 UTC Modified: 2013-10-15 11:54 UTC
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: littlexiang521 at gmail dot com Assigned:
Status: No Feedback Package: FPM related
PHP Version: 5.4.10 OS: CentOS 6.2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: littlexiang521 at gmail dot com
New email:
PHP Version: OS:


 [2013-02-26 07:28 UTC] littlexiang521 at gmail dot com
class a{
    public function __get($name)
        switch ($name){
            case 'foo':
                return 'bar';
            case 'foofoo':
                return $this->foo;
$obj = new $a();

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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2013-02-26 07:30 UTC] littlexiang521 at gmail dot com
-PHP Version: 5.4.12 +PHP Version: 5.4.10
 [2013-02-26 07:30 UTC] littlexiang521 at gmail dot com
sorry for the typo, should be:

$obj = new a();
 [2013-02-26 07:31 UTC] littlexiang521 at gmail dot com
$obj = new a();
 [2013-02-26 07:42 UTC]
-Status: Open +Status: Feedback
 [2013-02-26 07:42 UTC]
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 for *NIX and 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.
 [2013-10-15 11:54 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Mon Aug 15 15:05:45 2022 UTC