xref: /PHP-7.1/Zend/tests/each_003.phpt (revision 388624d3)
1--TEST--
2Testing each() with recursion
3--INI--
4zend.enable_gc=1
5--FILE--
6<?php
7
8$a = array(array());
9$a[] =& $a;
10
11var_dump(each($a[1]));
12
13?>
14--EXPECTF--
15array(4) {
16  [1]=>
17  array(0) {
18  }
19  ["value"]=>
20  array(0) {
21  }
22  [0]=>
23  int(0)
24  ["key"]=>
25  int(0)
26}
27