1
0
mirror of https://github.com/php/php-src.git synced 2026-04-27 10:16:41 +02:00
Files
archived-php-src/Zend/tests/each_003.phpt
T
Felipe Pena e35c457913 - New tests
2008-05-12 17:57:21 +00:00

38 lines
357 B
PHP

--TEST--
Testing each() with recursion
--FILE--
<?php
$a = array(array());
$a[] =& $a;
var_dump(each($a[1]));
?>
--EXPECTF--
array(4) {
[1]=>
array(0) {
}
["value"]=>
array(0) {
}
[0]=>
int(0)
["key"]=>
int(0)
}
--UEXPECTF--
array(4) {
[1]=>
array(0) {
}
[u"value"]=>
array(0) {
}
[0]=>
int(0)
[u"key"]=>
int(0)
}