summaryrefslogtreecommitdiff
path: root/tests/lang/019.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lang/019.phpt')
-rw-r--r--tests/lang/019.phpt8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/lang/019.phpt b/tests/lang/019.phpt
index 6c0a1cab6..2db29ad22 100644
--- a/tests/lang/019.phpt
+++ b/tests/lang/019.phpt
@@ -3,8 +3,6 @@ eval() test
--FILE--
<?php
-error_reporting(0);
-
eval("function test() { echo \"hey, this is a function inside an eval()!\\n\"; }");
$i=0;
@@ -13,7 +11,9 @@ while ($i<10) {
test();
$i++;
}
---EXPECT--
+
+eval('-');
+--EXPECTF--
hey, this is a regular echo'd eval()
hey, this is a function inside an eval()!
hey, this is a regular echo'd eval()
@@ -34,3 +34,5 @@ hey, this is a regular echo'd eval()
hey, this is a function inside an eval()!
hey, this is a regular echo'd eval()
hey, this is a function inside an eval()!
+
+Parse error: syntax error, unexpected $end in %s019.php(12) : eval()'d code on line 1