|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28792 throwing an exception inside a __get() causes a segmentation fault
Submitted: 2004-06-15 16:13 UTC Modified: 2010-11-29 00:24 UTC
Avg. Score:5.0 ± 0.0
Reproduced:5 of 5 (100.0%)
Same Version:5 (100.0%)
Same OS:4 (80.0%)
From: fabio at catho dot com dot br Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 5.0.0RC3 OS: Linux 2.4.24
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: fabio at catho dot com dot br
New email:
PHP Version: OS:


 [2004-06-15 16:13 UTC] fabio at catho dot com dot br
This code was working on PHP5 RC2, but not in the latest versions (CVS, PHP5 RC3).


Reproduce code:
class test {
  function __get($propname) {
    throw new Exception("TEST");

$t = new test();
echo $t->ok;

Expected result:
Fatal error: Uncaught exception 'Exception' with message 'TEST' in /usr/local/apache2/htdocs/Core/dump.php:4 Stack trace: #0 /usr/local/apache2/htdocs/Core/dump.php(8): test->__get() #1 /usr/local/apache2/htdocs/Core/dump.php(8): unknown() #2 {main} thrown in /usr/local/apache2/htdocs/Core/dump.php on line 4

Actual result:
Segmentation Fault (zero size reply)


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-06-15 16:19 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

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.
 [2004-06-23 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2010-11-29 00:24 UTC]
-Status: No Feedback +Status: Bogus
 [2010-11-29 00:24 UTC]
The crash cannot be reproduced.
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Thu Feb 20 00:01:26 2020 UTC