Strict Standards: Declaration of action_plugin_importoldindex::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/html/lib/plugins/importoldindex/action.php on line 8
Strict Standards: Declaration of action_plugin_popularity::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/html/lib/plugins/popularity/action.php on line 57
Strict Standards: Declaration of action_plugin_safefnrecode::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/html/lib/plugins/safefnrecode/action.php on line 66
Strict Standards: Declaration of action_plugin_importoldchangelog::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /var/www/html/lib/plugins/importoldchangelog/action.php on line 182
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/lib/plugins/importoldindex/action.php:8) in /var/www/html/inc/actions.php on line 607
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/lib/plugins/importoldindex/action.php:8) in /var/www/html/inc/actions.php on line 607
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/lib/plugins/importoldindex/action.php:8) in /var/www/html/inc/actions.php on line 607
===== Try - Catch block =====
Jelenleg a következőképpen van támogatva a [[http://hu2.php.net/manual/hu/language.exceptions.php|try...catch PHP szerkezet]]:
try {
throw $a;
}
catch ($r) {
var_dump($r);
}
Az eltérés a PHP-tól a következőkben nyilvánul meg:
- a ''catch'' ágban nem adható meg típus
- az előzőből következik, hogy csak egy ''catch'' ág lehet
- viszont tetszőleges változó dobható (tehát a példában a ''$a'' lehet akár tömb is)
- az [[.objects:Exception]] osztály létezik, de a nyelvben nincs lehetőség származtatásra, ezért használata nehézkes