php.net |  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
Votes:5
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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
45 + 12 = ?
Subscribe to this entry?

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

See http://bugs.php.net/bug.php?id=24279.

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)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-06-15 16:19 UTC] derick@php.net
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

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] felipe@php.net
-Status: No Feedback +Status: Bogus
 [2010-11-29 00:24 UTC] felipe@php.net
The crash cannot be reproduced.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 05:01:29 2024 UTC