summaryrefslogtreecommitdiff
path: root/ext/standard/tests/array/bug62607.phpt
blob: d9d529d2cfa263b1329ef862832d586fb48a7240 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--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