summaryrefslogtreecommitdiff
path: root/src/tests/disable_function/disabled_functions_shell_exec_opcache_preload.phpt
diff options
context:
space:
mode:
authorjvoisin2022-03-20 18:20:45 +0100
committerjvoisin2022-03-20 18:20:45 +0100
commit81dd7f2ef07af306fe83d7755cbac4529aa9fc8d (patch)
tree32cc44c6231b30db5ac7b15699297863460784aa /src/tests/disable_function/disabled_functions_shell_exec_opcache_preload.phpt
parent83b01942dfc80474cc05e09aeef4b44307a7120b (diff)
parentc38df1077a6c1dfbca1baca049214d053e2e7684 (diff)
Merge remote-tracking branch 'sektioneins/master'
Diffstat (limited to 'src/tests/disable_function/disabled_functions_shell_exec_opcache_preload.phpt')
-rw-r--r--src/tests/disable_function/disabled_functions_shell_exec_opcache_preload.phpt21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/tests/disable_function/disabled_functions_shell_exec_opcache_preload.phpt b/src/tests/disable_function/disabled_functions_shell_exec_opcache_preload.phpt
new file mode 100644
index 0000000..7e076ae
--- /dev/null
+++ b/src/tests/disable_function/disabled_functions_shell_exec_opcache_preload.phpt
@@ -0,0 +1,21 @@
1--TEST--
2Disable functions - shell_exec via opcache.preload
3--SKIPIF--
4<?php if (!extension_loaded("snuffleupagus")) print "skip"; ?>
5<?php if (!extension_loaded("opcache")) print "skip"; ?>
6<?php if (PHP_VERSION_ID < 70400) print "skip"; ?>
7--EXTENSIONS--
8opcache
9--XFAIL--
10--INI--
11sp.configuration_file={PWD}/config/disabled_functions_extra.ini
12allow_url_include=1
13opcache.enable=1
14opcache.enable_cli=1
15opcache.preload=data://text/plain,%3C%3Fphp+shell_exec%28%22ls%22%29%3B
16opcache.preload_user=nobody
17--FILE--
18<?php
19?>
20--EXPECTF--
21Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'shell_exec', %a matched a rule in data%a line 1