each_003.phpt 373 B

123456789101112131415161718192021222324252627
  1. --TEST--
  2. Testing each() with recursion
  3. --INI--
  4. zend.enable_gc=1
  5. --FILE--
  6. <?php
  7. $a = array(array());
  8. $a[] =& $a;
  9. var_dump(each($a[1]));
  10. ?>
  11. --EXPECTF--
  12. Deprecated: The each() function is deprecated. This message will be suppressed on further calls in %s on line %d
  13. array(4) {
  14. [1]=>
  15. array(0) {
  16. }
  17. ["value"]=>
  18. array(0) {
  19. }
  20. [0]=>
  21. int(0)
  22. ["key"]=>
  23. int(0)
  24. }