summaryrefslogtreecommitdiff
path: root/src/tests/eval_blacklist/nested_eval_blacklist2.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/eval_blacklist/nested_eval_blacklist2.phpt')
-rw-r--r--src/tests/eval_blacklist/nested_eval_blacklist2.phpt8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tests/eval_blacklist/nested_eval_blacklist2.phpt b/src/tests/eval_blacklist/nested_eval_blacklist2.phpt
index aee41db..9f7a4d0 100644
--- a/src/tests/eval_blacklist/nested_eval_blacklist2.phpt
+++ b/src/tests/eval_blacklist/nested_eval_blacklist2.phpt
@@ -6,7 +6,7 @@ Eval blacklist - nested eval, with a twist
6sp.configuration_file={PWD}/config/eval_backlist.ini 6sp.configuration_file={PWD}/config/eval_backlist.ini
7--FILE-- 7--FILE--
8<?php 8<?php
9$a = strlen("1337 1337 1337"); 9$a = strtoupper("1337 1337 1337");
10echo "Outside of eval: $a\n"; 10echo "Outside of eval: $a\n";
11eval( 11eval(
12 "echo 'Inception lvl 1...\n'; 12 "echo 'Inception lvl 1...\n';
@@ -15,15 +15,15 @@ eval(
15 eval( 15 eval(
16 \"echo \'Inception lvl 3...\n\'; 16 \"echo \'Inception lvl 3...\n\';
17 \"); 17 \");
18 strlen(\'Limbo!\'); 18 strtoupper(\'Limbo!\');
19 '); 19 ');
20"); 20");
21echo "After eval: $a\n"; 21echo "After eval: $a\n";
22?> 22?>
23--EXPECTF-- 23--EXPECTF--
24Outside of eval: 14 24Outside of eval: 1337 1337 1337
25Inception lvl 1... 25Inception lvl 1...
26Inception lvl 2... 26Inception lvl 2...
27Inception lvl 3... 27Inception lvl 3...
28 28
29Fatal error: [snuffleupagus][eval] A call to strlen was tried in eval, in %a/nested_eval_blacklist2.php(5) : eval()'d code:7, dropping it. in %a/nested_eval_blacklist2.php(5) : eval()'d code(4) : eval()'d code on line 7 \ No newline at end of file 29Fatal error: [snuffleupagus][eval] A call to strtoupper was tried in eval, in %a/nested_eval_blacklist2.php(5) : eval()'d code:7, dropping it. in %a/nested_eval_blacklist2.php(5) : eval()'d code(4) : eval()'d code on line 7