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