diff options
| author | Ben Fuhrmannek | 2020-06-15 11:51:16 +0200 |
|---|---|---|
| committer | Ben Fuhrmannek | 2020-06-15 11:51:16 +0200 |
| commit | 7ac1e3866ef4f146c6c93a5ca13b9aebb14e936a (patch) | |
| tree | ce57745314d905ff06119788acb56c11dcb3aede /src/tests/disable_function/disabled_function_super_global_var.phpt | |
| parent | f742d9f88bf788e38bbe832f1b75e39784f024bc (diff) | |
| parent | 7f9602ebc23582195d63eb35f1de1961297f2e00 (diff) | |
Merge remote-tracking branch 'upstream/master'
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 196d9e2..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][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 |
