1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 16:22:37 +01:00
Files

13 lines
260 B
PHP

--TEST--
Bug #62607: array_walk_recursive move internal pointer
--FILE--
<?php
$arr = array('a'=>'b');
echo 'Before -> '.current($arr).PHP_EOL;
array_walk_recursive($arr, function(&$val){});
echo 'After -> '.current($arr);
?>
--EXPECT--
Before -> b
After -> b