diff options
| author | Ben Fuhrmannek | 2016-03-04 14:50:51 +0100 |
|---|---|---|
| committer | Ben Fuhrmannek | 2016-03-04 14:50:51 +0100 |
| commit | f15b5aa308a46d555ecc09c075db8728a0895c23 (patch) | |
| tree | 9c67754998d93aa922176c557df85b07fe9d857f /tests/executor/function_whitelist_maxabs.phpt | |
| parent | c46f6fdffade1aa4f544adc871650d3e1e360454 (diff) | |
test cases for eval+func black/whitelist
Diffstat (limited to 'tests/executor/function_whitelist_maxabs.phpt')
| -rw-r--r-- | tests/executor/function_whitelist_maxabs.phpt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/executor/function_whitelist_maxabs.phpt b/tests/executor/function_whitelist_maxabs.phpt new file mode 100644 index 0000000..88a356e --- /dev/null +++ b/tests/executor/function_whitelist_maxabs.phpt | |||
| @@ -0,0 +1,15 @@ | |||
| 1 | --TEST-- | ||
| 2 | Testing: suhosin.executor.func.whitelist=max,abs | ||
| 3 | --SKIPIF-- | ||
| 4 | <?php include "../skipifnotcli.inc"; ?> | ||
| 5 | --INI-- | ||
| 6 | suhosin.log.sapi=64 | ||
| 7 | suhosin.executor.func.whitelist=max,abs | ||
| 8 | --FILE-- | ||
| 9 | <?php | ||
| 10 | abs(1); | ||
| 11 | max(1,2); | ||
| 12 | abs(1); | ||
| 13 | ?> | ||
| 14 | --EXPECTF-- | ||
| 15 | |||
