xref: /PHP-7.3/Zend/tests/each_003.phpt (revision 06a03401)
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--
15Deprecated: The each() function is deprecated. This message will be suppressed on further calls in %s on line %d
16array(4) {
17  [1]=>
18  array(0) {
19  }
20  ["value"]=>
21  array(0) {
22  }
23  [0]=>
24  int(0)
25  ["key"]=>
26  int(0)
27}
28