mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
14 lines
245 B
PHP
14 lines
245 B
PHP
--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
|