blob: c193c2f3126b3b18a3953df247d63841ff474cbf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
--TEST--
Exception with by-ref message
--FILE--
<?php
class MyException extends Exception
{
public function __construct(&$msg) {
$this->message =& $msg;
}
}
$msg = 'Message';
throw new MyException($msg);
?>
--EXPECTF--
Fatal error: Uncaught MyException: Message in %s:%d
Stack trace:
#0 {main}
thrown in %s on line %d
|