xref: /PHP-7.2/ext/standard/tests/array/bug71603.phpt (revision f1d7e3ca)
1--TEST--
2Bug #71603 (compact() maintains references in php7)
3--FILE--
4<?php
5$foo = "okey";
6$foo_reference =& $foo;
7
8$array = compact('foo_reference');
9
10$foo = 'changed!';
11
12var_dump($array['foo_reference']);
13--EXPECT--
14string(4) "okey"
15