summaryrefslogtreecommitdiff
path: root/src/tests/disable_function/disabled_function_local_var_8.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/disable_function/disabled_function_local_var_8.phpt')
-rw-r--r--src/tests/disable_function/disabled_function_local_var_8.phpt21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/tests/disable_function/disabled_function_local_var_8.phpt b/src/tests/disable_function/disabled_function_local_var_8.phpt
new file mode 100644
index 0000000..1f1a0dc
--- /dev/null
+++ b/src/tests/disable_function/disabled_function_local_var_8.phpt
@@ -0,0 +1,21 @@
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
21Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'strlen' in %a/disabled_function_local_var_8.php on line 8 \ No newline at end of file