blob: eefb16162634f2b4e772c9b31fabe88bdfcd2f78 (
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
--TEST--
Disable functions - match on a local variable
--SKIPIF--
<?php if (!extension_loaded("snuffleupagus")) print "skip"; ?>
--INI--
sp.configuration_file={PWD}/config/disabled_function_local_var.ini
--FILE--
<?php
$qwe = Array('123' => Array('qwe'), '456' => Array('no block this'));
var_dump($qwe);
strtoupper("qwe");
$qwe = Array('123' => Array('qwe'), '456' => Array(Array('block this')));
var_dump($qwe);
strtoupper("qwe");
?>
--EXPECTF--
array(2) {
[123]=>
array(1) {
[0]=>
string(3) "qwe"
}
[456]=>
array(1) {
[0]=>
string(13) "no block this"
}
}
array(2) {
[123]=>
array(1) {
[0]=>
string(3) "qwe"
}
[456]=>
array(1) {
[0]=>
array(1) {
[0]=>
string(10) "block this"
}
}
}
Fatal error: [snuffleupagus][0.0.0.0][disabled_function][drop] Aborted execution on call of the function 'strtoupper' in %a/disabled_function_local_var_10.php on line 7
|