diff options
Diffstat (limited to 'src/tests/disable_function/disabled_function_local_var_2.phpt')
| -rw-r--r-- | src/tests/disable_function/disabled_function_local_var_2.phpt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tests/disable_function/disabled_function_local_var_2.phpt b/src/tests/disable_function/disabled_function_local_var_2.phpt index 5b21d07..5a186cd 100644 --- a/src/tests/disable_function/disabled_function_local_var_2.phpt +++ b/src/tests/disable_function/disabled_function_local_var_2.phpt | |||
| @@ -8,7 +8,7 @@ sp.configuration_file={PWD}/config/disabled_function_local_var.ini | |||
| 8 | <?php | 8 | <?php |
| 9 | $a = 1338; | 9 | $a = 1338; |
| 10 | function test(){ | 10 | function test(){ |
| 11 | echo strlen("id") . "\n"; | 11 | echo strtoupper("id") . "\n"; |
| 12 | } | 12 | } |
| 13 | echo "Value of a: $a\n"; | 13 | echo "Value of a: $a\n"; |
| 14 | test(); | 14 | test(); |
| @@ -27,7 +27,7 @@ test(); | |||
| 27 | ?> | 27 | ?> |
| 28 | --EXPECTF-- | 28 | --EXPECTF-- |
| 29 | Value of a: 1338 | 29 | Value of a: 1338 |
| 30 | 2 | 30 | ID |
| 31 | Value of a: | 31 | Value of a: |
| 32 | array(2) { | 32 | array(2) { |
| 33 | ["qwe"]=> | 33 | ["qwe"]=> |
| @@ -35,7 +35,7 @@ array(2) { | |||
| 35 | [123]=> | 35 | [123]=> |
| 36 | string(3) "nop" | 36 | string(3) "nop" |
| 37 | } | 37 | } |
| 38 | 2 | 38 | ID |
| 39 | Value of a: | 39 | Value of a: |
| 40 | array(2) { | 40 | array(2) { |
| 41 | ["qwe"]=> | 41 | ["qwe"]=> |
| @@ -44,4 +44,4 @@ array(2) { | |||
| 44 | string(5) "block" | 44 | string(5) "block" |
| 45 | } | 45 | } |
| 46 | 46 | ||
| 47 | Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'strlen' in %a/disabled_function_local_var_2.php on line 4 \ No newline at end of file | 47 | Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'strtoupper' in %a/disabled_function_local_var_2.php on line 4 |
