summaryrefslogtreecommitdiff
path: root/src/tests/disable_function/disabled_functions_drop_include.phpt
blob: 014a6278906972c4704b6ffbc08fc77edb35270a (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
29
--TEST--
Disable function, bug : https://github.com/jvoisin/snuffleupagus/issues/181
--SKIPIF--
<?php if (!extension_loaded("snuffleupagus")) print "skip"; ?>
<?php if (PHP_VERSION_ID >= 80000) print "skip"; ?>
--INI--
sp.configuration_file={PWD}/config/disabled_functions_drop_include.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