summaryrefslogtreecommitdiff
path: root/src/tests/disabled_functions_drop_include_simulation.phpt
blob: 07c3e98d28e899fe1e35401ff3230e2a27bb55d3 (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
27
28
--TEST--
Disable function, bug : https://github.com/nbs-system/snuffleupagus/issues/181
--SKIPIF--
<?php if (!extension_loaded("snuffleupagus")) die "skip"; ?>
--INI--
sp.configuration_file={PWD}/config/disabled_functions_drop_include_simulation.ini
--FILE--
<?php
$dir = __DIR__;

@unlink("$dir/test_include.php");

$code = <<< 'EOD'
<?php
$test = "testOK";
?>
EOD;

file_put_contents("$dir/test_include.php", $code);

include "$dir/test_include.php";

echo $test;

?>

--EXPECTF--
testOK