summaryrefslogtreecommitdiff
path: root/src/tests/disable_function/disabled_functions_eval_filename.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/disable_function/disabled_functions_eval_filename.phpt')
-rw-r--r--src/tests/disable_function/disabled_functions_eval_filename.phpt14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/tests/disable_function/disabled_functions_eval_filename.phpt b/src/tests/disable_function/disabled_functions_eval_filename.phpt
new file mode 100644
index 0000000..4491e9e
--- /dev/null
+++ b/src/tests/disable_function/disabled_functions_eval_filename.phpt
@@ -0,0 +1,14 @@
1--TEST--
2Disable functions - eval
3--SKIPIF--
4<?php if (!extension_loaded("snuffleupagus")) die "skip"; ?>
5--INI--
6sp.configuration_file={PWD}/config/config_disabled_functions_eval_filename.ini
7--FILE--
8<?php
9$var = 123456789;
10eval('$var = 1337 + 1337;');
11print("Variable: $var\n");
12?>
13--EXPECTF--
14Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'eval' in %a/disabled_functions_eval_filename.php(3) : eval()'d code on line 1 \ No newline at end of file