diff options
Diffstat (limited to 'src/tests/disable_function/disabled_function_super_global_var.phpt')
| -rw-r--r-- | src/tests/disable_function/disabled_function_super_global_var.phpt | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/tests/disable_function/disabled_function_super_global_var.phpt b/src/tests/disable_function/disabled_function_super_global_var.phpt index 3aa8ea1..19bb892 100644 --- a/src/tests/disable_function/disabled_function_super_global_var.phpt +++ b/src/tests/disable_function/disabled_function_super_global_var.phpt | |||
| @@ -9,13 +9,17 @@ bla=test | |||
| 9 | --FILE-- | 9 | --FILE-- |
| 10 | <?php | 10 | <?php |
| 11 | function test(){ | 11 | function test(){ |
| 12 | try { | ||
| 12 | echo strtoupper($_GET['bla']) . "\n"; | 13 | echo strtoupper($_GET['bla']) . "\n"; |
| 13 | } | 14 | } |
| 14 | test(); | 15 | catch (Exception $e) { } |
| 16 | catch (Error $e) { } | ||
| 17 | } | ||
| 18 | test(); | ||
| 15 | $_GET['bla'] = 'test2'; | 19 | $_GET['bla'] = 'test2'; |
| 16 | test(); | 20 | test(); |
| 17 | ?> | 21 | ?> |
| 18 | --EXPECTF-- | 22 | --EXPECTF-- |
| 19 | TEST | 23 | TEST |
| 20 | 24 | ||
| 21 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function] Aborted execution on call of the function 'strtoupper' in %a/disabled_function_super_global_var.php on line 3 | 25 | Fatal error: [snuffleupagus][0.0.0.0][disabled_function] Aborted execution on call of the function 'strtoupper' in %a/disabled_function_super_global_var.php on line 4 |
