blob: bdbd32f4d6c2b8e382a9d40dfde365cee3880168 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
--TEST--
Disable functions - require_once
--SKIPIF--
<?php if (!extension_loaded("snuffleupagus")) die "skip"; ?>
--INI--
sp.configuration_file={PWD}/config/config_disabled_functions_require.ini
--FILE--
<?php
$dir = __DIR__;
file_put_contents($dir . '/test.bla', "BLA");
file_put_contents($dir . '/test.meh', "MEH");
require_once $dir . '/test.bla';
require_once $dir . '/test.meh';
echo "1337";
?>
--EXPECTF--
BLA[snuffleupagus][0.0.0.0][disabled_function][drop] The call to the function 'require_once' in %a/disabled_functions_require_once.php:%d has been disabled, because its argument 'inclusion path' content (%a/test.meh) matched a rule.
--CLEAN--
<?php
$dir = __DIR__;
unlink($dir . '/test.bla');
unlink($dir . '/test.meh');
?>
|