summaryrefslogtreecommitdiff
path: root/src/tests/disable_function/disabled_functions_include_simulation.phpt
blob: c2bd48b7b5a9bd221e51bf76d5006e78aa46a667 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--TEST--
Disable functions - Include (simulation)
--SKIPIF--
<?php if (!extension_loaded("snuffleupagus")) print "skip"; ?>
--INI--
sp.configuration_file={PWD}/config/config_disabled_functions_include.ini
--FILE--
<?php 
$dir = __DIR__;

// Just in case
@unlink($dir . '/test.bla');
@unlink($dir . '/test.sim');

file_put_contents($dir . '/test.bla', "BLA\n");
file_put_contents($dir . '/test.sim', "MEH\n");
include $dir . '/test.bla';
include $dir . '/test.sim';
echo "1337\n";
?>
--EXPECTF--
BLA

Warning: [snuffleupagus][0.0.0.0][disabled_function][simulation] Aborted execution on call of the function 'include', because its argument 'inclusion path' content (%a%2Ftest.sim) matched a rule in %a/disabled_functions_include_simulation.php on line %d
MEH
1337