1--TEST-- 2Bug #48408 (crash when exception is thrown while passing function arguments) 3--FILE-- 4<?php 5class B{ 6 public function process($x){ 7 return $x; 8 } 9} 10class C{ 11 public function generate($x){ 12 throw new Exception; 13 } 14} 15$b = new B; 16$c = new C; 17try{ 18 $b->process($c->generate(0)); 19} 20catch(Exception $e){ 21 $c->generate(0); 22} 23?> 24--EXPECTF-- 25 26Fatal error: Uncaught Exception in %s 27Stack trace: 28#0 %s(%d): C->generate(0) 29#1 {main} 30 thrown in %s 31