summaryrefslogtreecommitdiff
path: root/Zend/tests/bug41372.phpt
blob: 3446150f555de06fab78d15cc88ca074d7475aa4 (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