summaryrefslogtreecommitdiff
path: root/src/tests/disable_function/disabled_function_local_var_crash.phpt
blob: d29fcdc6980d726f0af2895b6216219ea40e984c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--TEST--
Disable functions - match on a local variable
--SKIPIF--
<?php if (!extension_loaded("snuffleupagus")) print "skip"; ?>
<?php if (PHP_VERSION_ID >= 80000) print "skip"; ?>
--INI--
sp.configuration_file={PWD}/config/disabled_function_local_var.ini
--FILE--
<?php 
function test(){
    echo strtoupper("id") . "\n";
}
ob_start(test());
echo "test\n";
?>
--EXPECTF--
ID
test