--TEST-- Exception with by-ref message --FILE-- 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