diff options
| author | Ondřej Surý <ondrej@sury.org> | 2012-01-11 15:43:42 +0100 |
|---|---|---|
| committer | Ondřej Surý <ondrej@sury.org> | 2012-01-11 15:43:42 +0100 |
| commit | 8f1428d29ef91d74b4d272af171675f2971eb15b (patch) | |
| tree | a1f4f4d7dc5bfe8096806dd5c5266634e19fa07a /tests/lang/019.phpt | |
| parent | c6e4182351e0173fe58de141e143aac2eacf5efe (diff) | |
| download | php-upstream/5.3.9.tar.gz | |
Imported Upstream version 5.3.9upstream/5.3.9
Diffstat (limited to 'tests/lang/019.phpt')
| -rw-r--r-- | tests/lang/019.phpt | 8 |
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 |
