ID: 26275
User updated by: php dot bug at stre dot it
Reported By: php dot bug at stre dot it
Status: Open
Bug Type: Zend Engine 2 problem
Operating System: win32 nt5.1
PHP Version: 5CVS-2003-11-16 (dev)
New Comment:
sorry short version work, because there is first a standalone badfunc
call, this version dont work
<?PHP
function badfunc() {
throw new Exception('Some Exception from bad clas');
}
function badcall($aaa, $bbb, $ccc) {}
function test() {
badcall(1,1,badfunc());
echo 'server ok';
}
test();
?>
i think is a failure by building stack trace
Previous Comments:
------------------------------------------------------------------------
[2003-11-16 13:17:41] php dot bug at stre dot it
shorter version
<?PHP
function badfunc() {
throw new Exception('Some Exception from bad clas');
}
function badcall($aaa, $bbb, $ccc) {}
function test() {
badfunc();
badcall(1,1,badfunc());
echo 'server ok';
}
test();
?>
------------------------------------------------------------------------
[2003-11-16 12:20:32] php dot bug at stre dot it
Description:
------------
this code below bring my server to crash
Reproduce code:
---------------
<?PHP
class Bad {
public static function badfunc() {
throw new Exception('Some Exception from bad class');
return 'hello';
}
public static function badcall($obj1, $key1, $val1) {
return 'hello';
}
}
try {
function test() {
Bad::badcall('test','bad',Bad::badfunc());
echo 'server ok';
}
test();
}
catch(Exception $err) {
echo $err->getMessage();
}
?>
Expected result:
----------------
no response from server, must restart service
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=26275&edit=1