1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 16:22:37 +01:00
Files
archived-php-src/ext/standard/tests/array/bug71603.phpt
Máté Kocsis 7aacc705d0 Add many missing closing PHP tags to tests
Closes GH-5958
2020-08-09 22:03:36 +02:00

16 lines
238 B
PHP

--TEST--
Bug #71603 (compact() maintains references in php7)
--FILE--
<?php
$foo = "okey";
$foo_reference =& $foo;
$array = compact('foo_reference');
$foo = 'changed!';
var_dump($array['foo_reference']);
?>
--EXPECT--
string(4) "okey"