Annotation of embedaddon/php/Zend/tests/bug48408.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Bug #48408 (crash when exception is thrown while passing function arguments)
3: --FILE--
4: <?php
5: class B{
6: public function process($x){
7: return $x;
8: }
9: }
10: class C{
11: public function generate($x){
12: throw new Exception;
13: }
14: }
15: $b = new B;
16: $c = new C;
17: try{
18: $b->process($c->generate(0));
19: }
20: catch(Exception $e){
21: $c->generate(0);
22: }
23: ?>
24: --EXPECTF--
25:
26: Fatal error: Uncaught exception 'Exception' in %s
27: Stack trace:
28: #0 %s(%d): C->generate(0)
29: #1 {main}
30: thrown in %s
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>