blob: 0a693be7650cf8c8574ef32ffd21405dd167218e (
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/jvoisin/snuffleupagus/issues/181
--SKIPIF--
<?php if (!extension_loaded("snuffleupagus")) print "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
|