summaryrefslogtreecommitdiff
path: root/src/tests/disable_function/disabled_function_local_var_obj.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/disable_function/disabled_function_local_var_obj.phpt')
-rw-r--r--src/tests/disable_function/disabled_function_local_var_obj.phpt8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tests/disable_function/disabled_function_local_var_obj.phpt b/src/tests/disable_function/disabled_function_local_var_obj.phpt
index 29d57cc..89e423a 100644
--- a/src/tests/disable_function/disabled_function_local_var_obj.phpt
+++ b/src/tests/disable_function/disabled_function_local_var_obj.phpt
@@ -16,11 +16,11 @@ class test_class {
16$test_array = ['qwe']; 16$test_array = ['qwe'];
17$arg = 'qwe'; 17$arg = 'qwe';
18$test = new test_class('qwe', 'qwe'); 18$test = new test_class('qwe', 'qwe');
19echo strlen($test->$arg) . "\n"; 19echo strtoupper($test->$arg) . "\n";
20$test = new test_class('qwe', 'nop_object'); 20$test = new test_class('qwe', 'nop_object');
21echo strlen($test->$arg) . "\n"; 21echo strtoupper($test->$arg) . "\n";
22?> 22?>
23--EXPECTF-- 23--EXPECTF--
243 24QWE
25 25
26Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'strlen' in %a/disabled_function_local_var_obj.php on line 14 \ No newline at end of file 26Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'strtoupper' in %a/disabled_function_local_var_obj.php on line 14