1--TEST-- 2Test that legacy IS_ITERABLE arg info type generates a notice 3--EXTENSIONS-- 4zend_test 5--FILE-- 6<?php 7 8function gen() { 9 yield 1; 10}; 11 12var_dump(zend_iterable_legacy([], null)); 13var_dump(zend_iterable_legacy([], [])); 14var_dump(zend_iterable_legacy(gen(), null)); 15var_dump(zend_iterable_legacy(gen(), gen())); 16 17?> 18==DONE== 19--EXPECTF-- 20array(0) { 21} 22array(0) { 23} 24object(Generator)#%d (1) { 25 ["function"]=> 26 string(3) "gen" 27} 28object(Generator)#%d (1) { 29 ["function"]=> 30 string(3) "gen" 31} 32==DONE== 33