xref: /PHP-8.2/ext/standard/tests/array/bug62607.phpt (revision 11e05092)
1--TEST--
2Bug #62607: array_walk_recursive move internal pointer
3--FILE--
4<?php
5$arr = array('a'=>'b');
6echo 'Before -> '.current($arr).PHP_EOL;
7array_walk_recursive($arr, function(&$val){});
8echo 'After -> '.current($arr);
9?>
10--EXPECT--
11Before -> b
12After -> b
13