summaryrefslogtreecommitdiff
path: root/src/tests/disabled_function_local_var_8.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/disabled_function_local_var_8.phpt')
-rw-r--r--src/tests/disabled_function_local_var_8.phpt20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/tests/disabled_function_local_var_8.phpt b/src/tests/disabled_function_local_var_8.phpt
new file mode 100644
index 0000000..475b472
--- /dev/null
+++ b/src/tests/disabled_function_local_var_8.phpt
@@ -0,0 +1,20 @@
1--TEST--
2Disable functions - match on a local variable
3--SKIPIF--
4<?php if (!extension_loaded("snuffleupagus")) die "skip"; ?>
5--INI--
6sp.configuration_file={PWD}/config/disabled_function_local_var.ini
7--FILE--
8<?php
9namespace qwe {
10 const ASD = 'qwerty';
11}
12namespace asd {
13 const asd = 'qwe';
14 echo "Valeur: " . \qwe\ASD . "\n";
15 strlen("qwe");
16}
17?>
18--EXPECTF--
19Valeur: qwerty
20[snuffleupagus][0.0.0.0][disabled_function][drop] The call to the function 'strlen' in %a/tests/disabled_function_local_var_8.php:%d has been disabled.