--TEST-- Bug #81587: MultipleIterator Segmentation fault w/ SimpleXMLElement attached --SKIPIF-- --FILE-- attachIterator(new SimpleXMLElement('')); foreach ($mi as $v) { var_dump($v); } ?> --EXPECT-- array(1) { [0]=> object(SimpleXMLElement)#4 (0) { } }