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/try/ |
Current File : //proc/self/root/usr/local/src/php72/php-7.2.12/php-7.2.12/Zend/tests/try/catch_finally_003.phpt |
--TEST-- Try catch finally (with multi-returns) --FILE-- <?php function dummy($msg) { var_dump($msg); } function foo ($a) { try { dummy("try"); return $a; } catch (Exception $e) { throw $e; } finally { dummy("finally"); return "finally"; } return "end"; } function &bar($a) { try { echo "try\n"; throw new Exception("ex"); } catch (Exception $e) { } finally { return $a; } return ($c = "end"); } var_dump(foo("para")); var_dump(bar("para")); ?> --EXPECTF-- string(3) "try" string(7) "finally" string(7) "finally" try string(4) "para"
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare