summaryrefslogtreecommitdiff
path: root/src/tests/disable_function/disabled_functions_regexp_multiple.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/disable_function/disabled_functions_regexp_multiple.phpt')
-rw-r--r--src/tests/disable_function/disabled_functions_regexp_multiple.phpt19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/tests/disable_function/disabled_functions_regexp_multiple.phpt b/src/tests/disable_function/disabled_functions_regexp_multiple.phpt
new file mode 100644
index 0000000..79f1fc7
--- /dev/null
+++ b/src/tests/disable_function/disabled_functions_regexp_multiple.phpt
@@ -0,0 +1,19 @@
1--TEST--
2Disable functions
3--SKIPIF--
4<?php if (!extension_loaded("snuffleupagus")) die "skip"; ?>
5--INI--
6sp.configuration_file={PWD}/config/disabled_functions_regexp.ini
7--FILE--
8<?php
9echo strlen("id") . "\n";
10echo strcmp("1", "2") . "\n";
11print("After") . "\n";
12?>
13--EXPECTF--
14Warning: [snuffleupagus][disabled_function] Aborted execution on call of the function 'strlen' in %a/disabled_functions_regexp_multiple.php on line 2
152
16
17Warning: [snuffleupagus][disabled_function] Aborted execution on call of the function 'strcmp' in %a/disabled_functions_regexp_multiple.php on line 3
18-1
19After \ No newline at end of file