summaryrefslogtreecommitdiff
path: root/src/tests/disable_function/disabled_function_super_global_var.phpt
blob: f5385b6db9ce47e832ee6873e4ff4f05cfe68d68 (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
--TEST--
Disable functions - match on a super global
--SKIPIF--
<?php if (!extension_loaded("snuffleupagus")) die "skip"; ?>
--INI--
sp.configuration_file={PWD}/config/disabled_function_super_global_var.ini
--GET--
bla=test
--FILE--
<?php 
function test(){
try {
    echo strtoupper($_GET['bla']) . "\n";
}
catch (Exception $e) { }
catch (Error $e) { }
}
	test();
$_GET['bla'] = 'test2';
test();
?>
--EXPECTF--
TEST

Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'strtoupper' in %a/disabled_function_super_global_var.php on line 4