mirror of
https://github.com/php/php-src.git
synced 2024-12-21 07:51:23 +08:00
a197c0b751
# These tests were failing on different configurations, so adding them # all to get more chances of seeing one failing in case of problem.
31 lines
459 B
PHP
31 lines
459 B
PHP
--TEST--
|
|
Bug #48408 (crash when exception is thrown while passing function arguments)
|
|
--FILE--
|
|
<?php
|
|
class B{
|
|
public function process($x){
|
|
return $x;
|
|
}
|
|
}
|
|
class C{
|
|
public function generate($x){
|
|
throw new Exception;
|
|
}
|
|
}
|
|
$b = new B;
|
|
$c = new C;
|
|
try{
|
|
$b->process($c->generate(0));
|
|
}
|
|
catch(Exception $e){
|
|
$c->generate(0);
|
|
}
|
|
?>
|
|
--EXPECTF--
|
|
|
|
Fatal error: Uncaught exception 'Exception' in %s
|
|
Stack trace:
|
|
#0 %s(%d): C->generate(0)
|
|
#1 {main}
|
|
thrown in %s
|