blob: 090efcd310155d2afb3c54be712c9e9c709ecc84 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
--TEST--
Bug #41372 Internal pointer of source array resets during array copying
--FILE--
<?php
$Foo = array('val1', 'val2', 'val3');
end($Foo);
echo key($Foo),"\n";
$MagicInternalPointerResetter = $Foo;
echo key($Foo),"\n";
?>
--EXPECT--
2
2
|