xref: /PHP-7.4/Zend/tests/try/bug72629.phpt (revision d679f022)
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--EXPECT--
15bool(true)
16