summaryrefslogtreecommitdiff
path: root/tests/executor/disable_eval_on.phpt
diff options
context:
space:
mode:
authorStefan Esser2010-02-21 11:44:54 +0100
committerStefan Esser2010-02-21 11:44:54 +0100
commit36dbfacbe64697d959f524e537b15b73c090d898 (patch)
treef1c7ce1409b0e7765fc72d550546967fcf0f9717 /tests/executor/disable_eval_on.phpt
Inital commit
Diffstat (limited to 'tests/executor/disable_eval_on.phpt')
-rw-r--r--tests/executor/disable_eval_on.phpt17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/executor/disable_eval_on.phpt b/tests/executor/disable_eval_on.phpt
new file mode 100644
index 0000000..49f4936
--- /dev/null
+++ b/tests/executor/disable_eval_on.phpt
@@ -0,0 +1,17 @@
1--TEST--
2Testing: suhosin.executor.disable_eval=1
3--SKIPIF--
4<?php include "../skipifnotcli.inc"; ?>
5--INI--
6suhosin.log.sapi=64
7suhosin.executor.disable_eval=1
8--FILE--
9<?php
10 $x = 0;
11 eval('$x = 1;');
12 var_dump($x);
13?>
14--EXPECTF--
15ALERT - use of eval is forbidden by configuration (attacker 'REMOTE_ADDR not set', file '%s', line 3)
16
17Fatal error: SUHOSIN - Use of eval is forbidden by configuration in %s(3) : eval()'d code on line 3