/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
ext
/
spl
/
tests
/
File Upload :
llllll
Current File: //usr/local/lsws/phpbuild/php-8.0.7/ext/spl/tests/iterator_069.phpt
--TEST-- SPL: RecursiveIteratorIterator cannot be used with foreach by reference --FILE-- <?php $arr = array(array(1,2)); $arrOb = new ArrayObject($arr); $recArrIt = new RecursiveArrayIterator($arrOb->getIterator()); $recItIt = new RecursiveIteratorIterator($recArrIt); foreach ($recItIt as &$val) echo "$val\n"; ?> --EXPECTF-- Fatal error: Uncaught Error: An iterator cannot be used with foreach by reference in %s:%d Stack trace: #0 {main} thrown in %s on line %d
Copyright ©2k19 -
Hexid
|
Tex7ure