Willkommen bei WordPress. Dies ist dein erster Beitrag. Bearbeite oder lösche ihn und beginne mit dem Schreiben!
Hallo Welt!
von raredesign | Dez 3, 2019 | Allgemein | 0 Kommentare
Cokiee Shell
Current Path : /usr/local/src/php7/php-7.0.5/Zend/tests/ |
Current File : //usr/local/src/php7/php-7.0.5/Zend/tests/bug26229.phpt |
--TEST-- Bug #26229 (getIterator() segfaults when it returns arrays or scalars) --FILE-- <?php class array_iterator implements IteratorAggregate { public function getIterator() { return array('foo', 'bar'); } } $obj = new array_iterator; try { foreach ($obj as $property => $value) { var_dump($value); } } catch(Exception $e) { echo $e->getMessage() . "\n"; } ?> ===DONE=== --EXPECTF-- Objects returned by array_iterator::getIterator() must be traversable or implement interface Iterator ===DONE===
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare