mirror of
https://github.com/php/php-src.git
synced 2024-11-25 02:44:58 +08:00
4035a8ebc0
Fixed bug #37715 (array pointers resetting on copy)
14 lines
244 B
PHP
Executable File
14 lines
244 B
PHP
Executable File
--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
|