summaryrefslogtreecommitdiff
path: root/Zend/tests/try/bug72629.phpt
blob: 2d596c78f8f9e7df3e61f9d19543f2c9b7022274 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
Bug #72629 (Caught exception assignment to variables ignores references)
--FILE--
<?php

$var = null;
$e = &$var;

try {
	throw new Exception;
} catch (Exception $e) { }

var_dump($var === $e);

--EXPECT--
bool(true)