#28792 [Fbk->NoF]: throwing an exception inside a __get() causes a segmentation fault

From: Date: Tue, 22 Jun 2004 23:00:12 +0000
Subject: #28792 [Fbk->NoF]: throwing an exception inside a __get() causes a segmentation fault
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-61298@lists.php.net to get a copy of this message
ID: 28792 Updated by: php-bugs@lists.php.net Reported By: fabio at catho dot com dot br -Status: Feedback +Status: No Feedback Bug Type: Reproducible crash Operating System: Linux 2.4.24 PHP Version: 5.0.0RC3 New Comment: 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". Previous Comments: ------------------------------------------------------------------------ [2004-06-15 16:19:45] 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-15 16:13:25] 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) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=28792&edit=1

« previous php.bugs (#61298) next »