mirror of
https://github.com/php/php-src.git
synced 2024-10-02 15:26:06 +00:00
9343f874cd
Also commit a test I forgot.
16 lines
201 B
PHP
16 lines
201 B
PHP
--TEST--
|
|
Throw reference
|
|
--FILE--
|
|
<?php
|
|
|
|
$e = new Exception;
|
|
$ref =& $e;
|
|
throw $e;
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Uncaught exception 'Exception' in %s:%d
|
|
Stack trace:
|
|
#0 {main}
|
|
thrown in %s on line %d
|