xref: /PHP-7.3/ext/standard/tests/array/bug71603.phpt (revision b746e698)
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