#23194 [Com]: Crash when using __get
| From: | cunha17 at uol dot com dot br | Date: | Sat, 21 Jun 2003 18:26:19 +0000 |
| Subject: | #23194 [Com]: Crash when using __get | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-42313@lists.php.net to get a copy of this message | ||
ID: 23194
Comment by: cunha17 at uol dot com dot br
Reported By: lphuberdeau at sympatico dot ca
Status: No Feedback
Bug Type: Zend Engine 2 problem
Operating System: linux (RH9)
PHP Version: 5CVS-2003-04-13 (dev)
New Comment:
I'm using PHP5-200306191730.
When any exception is raised inside a __get, __set or __call it leads
to a segmentation fault.
Cristiano Duarte.
Previous Comments:
------------------------------------------------------------------------
[2003-05-28 01:00:01] php-bugs at lists dot php dot net
No feedback was provided for this bug for over 2 weeks, 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".
------------------------------------------------------------------------
[2003-05-11 08:25:14] moriyoshi@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
------------------------------------------------------------------------
[2003-04-13 22:59:45] lphuberdeau at sympatico dot ca
Well, I don't know exacly what caused the bug, but I know I could
reproduce it.
Basically, Apache2(2.0.45) crashes when I run a certain script. I use
PHP5 of April 13th at 19:30 right now.
I was testing new features. Everything worked well (nice job guys)
until I placed a throw( new Exception( "Variable not found" )); in
function __get($name){}.
--
class foo
{
function __get( $name )
{
throw( new Exception( "Variable not found" ));
}
}
$o = new foo;
try
{
echo $o->bar;
}
catch( Exception $e )
{
echo $e;
}
--
If you need more details, feel free to contact me.
--
Louis-Philippe Huberdeau
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=23194&edit=1