summaryrefslogtreecommitdiff
path: root/src/tests/disable_function/disabled_functions_ret_right_hash.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/disable_function/disabled_functions_ret_right_hash.phpt')
-rw-r--r--src/tests/disable_function/disabled_functions_ret_right_hash.phpt14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/tests/disable_function/disabled_functions_ret_right_hash.phpt b/src/tests/disable_function/disabled_functions_ret_right_hash.phpt
new file mode 100644
index 0000000..1307172
--- /dev/null
+++ b/src/tests/disable_function/disabled_functions_ret_right_hash.phpt
@@ -0,0 +1,14 @@
1--TEST--
2Disable functions
3--SKIPIF--
4<?php if (!extension_loaded("snuffleupagus")) die "skip"; ?>
5--INI--
6sp.configuration_file={PWD}/config/config_disabled_functions_ret_right_hash.ini
7--FILE--
8<?php
9system("echo $((1 + 1336))");
10?>
11--EXPECTF--
121337
13
14Fatal error: [snuffleupagus][disabled_function] Aborted execution on return of the function 'system', because the function returned '1337', which matched a rule in %a/disabled_functions_ret_right_hash.php on line 2 \ No newline at end of file