summaryrefslogtreecommitdiff
path: root/src/tests/disable_function/disabled_functions_shell_exec_include_data.phpt
blob: 4c13db61a9fdece55a22230d42dd72b0cf28f3fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
Disable functions - shell_exec via include(data://)
--SKIPIF--
<?php if (!extension_loaded("snuffleupagus")) print "skip"; ?>
<?php if (PHP_VERSION_ID < 70400) print "skip"; ?>
--INI--
sp.configuration_file={PWD}/config/disabled_functions_extra.ini
allow_url_include=1
--FILE--
<?php
include('data://text/plain,'.urlencode('<?php shell_exec("ls");'));
?>
--EXPECTF--
Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0

Fatal 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