xref: /PHP-8.0/Zend/tests/try/bug72629.phpt (revision 7aacc705)
1--TEST--
2Bug #72629 (Caught exception assignment to variables ignores references)
3--FILE--
4<?php
5
6$var = null;
7$e = &$var;
8
9try {
10    throw new Exception;
11} catch (Exception $e) { }
12
13var_dump($var === $e);
14?>
15--EXPECT--
16bool(true)
17