xref: /PHP-8.0/Zend/tests/throw_reference.phpt (revision 3ae995f0)
1--TEST--
2Throw reference
3--FILE--
4<?php
5
6$e = new Exception;
7$ref =& $e;
8throw $e;
9
10?>
11--EXPECTF--
12Fatal error: Uncaught Exception in %s:%d
13Stack trace:
14#0 {main}
15  thrown in %s on line %d
16