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 : /proc/self/root/usr/local/src/php72/php-7.2.12/php-7.2.12/Zend/tests/ |
Current File : //proc/self/root/usr/local/src/php72/php-7.2.12/php-7.2.12/Zend/tests/bug32993.phpt |
--TEST-- Bug #32993 (implemented Iterator function current() don't throw exception) --FILE-- <?php class Test implements Iterator { public $arr = array(); public function rewind() { return reset($this->arr); } public function current() { throw new Exception(); } public function key() { return key($this->arr); } public function next() { return next($this->arr); } public function valid() { return (current($this->arr) !== false); } } $t = new Test(); $t->arr = array(1, 2, 3); try { foreach ($t as $v) { echo "$v\n"; } } catch (Exception $e) { ; // handle exception } echo "ok\n"; ?> --EXPECT-- ok
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare