summaryrefslogtreecommitdiff
path: root/tests/executor/function_whitelist_function_exists.phpt
diff options
context:
space:
mode:
authorBen Fuhrmannek2016-03-04 14:50:51 +0100
committerBen Fuhrmannek2016-03-04 14:50:51 +0100
commitf15b5aa308a46d555ecc09c075db8728a0895c23 (patch)
tree9c67754998d93aa922176c557df85b07fe9d857f /tests/executor/function_whitelist_function_exists.phpt
parentc46f6fdffade1aa4f544adc871650d3e1e360454 (diff)
test cases for eval+func black/whitelist
Diffstat (limited to 'tests/executor/function_whitelist_function_exists.phpt')
-rw-r--r--tests/executor/function_whitelist_function_exists.phpt22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/executor/function_whitelist_function_exists.phpt b/tests/executor/function_whitelist_function_exists.phpt
new file mode 100644
index 0000000..bc515ab
--- /dev/null
+++ b/tests/executor/function_whitelist_function_exists.phpt
@@ -0,0 +1,22 @@
1--TEST--
2Testing: suhosin.executor.func.whitelist with function_exists()
3--SKIPIF--
4<?php include "../skipifnotcli.inc"; ?>
5--INI--
6suhosin.log.sapi=64
7suhosin.executor.func.whitelist=printf,max,function_exists,var_dump
8--FILE--
9<?php
10 var_dump(function_exists("abs"));
11 var_dump(function_exists("max"));
12 var_dump(function_exists("ord"));
13 var_dump(function_exists("printf"));
14 var_dump(function_exists("chr"));
15?>
16--EXPECTF--
17bool(false)
18bool(true)
19bool(false)
20bool(true)
21bool(false)
22