summaryrefslogtreecommitdiff
path: root/src/tests/disable_function/disabled_function_super_global_var.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/disable_function/disabled_function_super_global_var.phpt')
-rw-r--r--src/tests/disable_function/disabled_function_super_global_var.phpt21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/tests/disable_function/disabled_function_super_global_var.phpt b/src/tests/disable_function/disabled_function_super_global_var.phpt
new file mode 100644
index 0000000..d97194a
--- /dev/null
+++ b/src/tests/disable_function/disabled_function_super_global_var.phpt
@@ -0,0 +1,21 @@
1--TEST--
2Disable functions - match on a super global
3--SKIPIF--
4<?php if (!extension_loaded("snuffleupagus")) die "skip"; ?>
5--INI--
6sp.configuration_file={PWD}/config/disabled_function_super_global_var.ini
7--GET--
8bla=test
9--FILE--
10<?php
11function test(){
12 echo strlen($_GET['bla']) . "\n";
13}
14test();
15$_GET['bla'] = 'test2';
16test();
17?>
18--EXPECTF--
194
20
21Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'strlen' in %a/disabled_function_super_global_var.php on line 3