diff options
| author | Stefan Esser | 2014-02-11 11:29:37 +0100 |
|---|---|---|
| committer | Stefan Esser | 2014-02-11 11:29:37 +0100 |
| commit | 90fff832ca49aff1c7dd030a8c47acf2a38a22a0 (patch) | |
| tree | 63078b6fc305a62c2fce647d28157520b0c9530b /tests/executor/function_blacklist.phpt | |
| parent | 7b62847869f794f8778f0e26b6086735fb9ba379 (diff) | |
Commit test cases for the function blacklist/whitelist problems
Diffstat (limited to 'tests/executor/function_blacklist.phpt')
| -rw-r--r-- | tests/executor/function_blacklist.phpt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/executor/function_blacklist.phpt b/tests/executor/function_blacklist.phpt new file mode 100644 index 0000000..d3df2ed --- /dev/null +++ b/tests/executor/function_blacklist.phpt | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | --TEST-- | ||
| 2 | Testing: suhosin.executor.func.blacklist=max | ||
| 3 | --SKIPIF-- | ||
| 4 | <?php include "../skipifnotcli.inc"; ?> | ||
| 5 | --INI-- | ||
| 6 | suhosin.log.sapi=64 | ||
| 7 | suhosin.executor.func.blacklist=max | ||
| 8 | --FILE-- | ||
| 9 | <?php | ||
| 10 | abs(1); | ||
| 11 | max(1,2); | ||
| 12 | abs(1); | ||
| 13 | ?> | ||
| 14 | --EXPECTF-- | ||
| 15 | ALERT - function within blacklist called: max() (attacker 'REMOTE_ADDR not set', file '%s', line 3) | ||
| 16 | |||
| 17 | Warning: max() has been disabled for security reasons in %s on line 3 | ||
