#23194 [Opn->Fbk]: Crash when using __get
| From: | moriyoshi@php.net | Date: | Sun, 11 May 2003 13:25:15 +0000 |
| Subject: | #23194 [Opn->Fbk]: Crash when using __get | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-39442@lists.php.net to get a copy of this message | ||
ID: 23194
Updated by: moriyoshi@php.net
Reported By: lphuberdeau at sympatico dot ca
-Status: Open
+Status: Feedback
Bug Type: Zend Engine 2 problem
Operating System: linux (RH9)
PHP Version: 5CVS-2003-04-13 (dev)
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[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