File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
tests /
lang /
019.phpt
Revision
1.1.1.2 (vendor branch):
download - view:
text,
annotated -
select for diffs -
revision graph
Tue May 29 12:34:34 2012 UTC (12 years, 5 months ago) by
misho
Branches:
php,
MAIN
CVS tags:
v5_4_3elwix,
v5_4_29p0,
v5_4_29,
v5_4_20p0,
v5_4_20,
v5_4_17p0,
v5_4_17,
HEAD
php 5.4.3+patches
1: --TEST--
2: eval() test
3: --FILE--
4: <?php
5:
6: eval("function test() { echo \"hey, this is a function inside an eval()!\\n\"; }");
7:
8: $i=0;
9: while ($i<10) {
10: eval("echo \"hey, this is a regular echo'd eval()\\n\";");
11: test();
12: $i++;
13: }
14:
15: eval('-');
16: --EXPECTF--
17: hey, this is a regular echo'd eval()
18: hey, this is a function inside an eval()!
19: hey, this is a regular echo'd eval()
20: hey, this is a function inside an eval()!
21: hey, this is a regular echo'd eval()
22: hey, this is a function inside an eval()!
23: hey, this is a regular echo'd eval()
24: hey, this is a function inside an eval()!
25: hey, this is a regular echo'd eval()
26: hey, this is a function inside an eval()!
27: hey, this is a regular echo'd eval()
28: hey, this is a function inside an eval()!
29: hey, this is a regular echo'd eval()
30: hey, this is a function inside an eval()!
31: hey, this is a regular echo'd eval()
32: hey, this is a function inside an eval()!
33: hey, this is a regular echo'd eval()
34: hey, this is a function inside an eval()!
35: hey, this is a regular echo'd eval()
36: hey, this is a function inside an eval()!
37:
38: Parse error: syntax error, unexpected %s in %s019.php(12) : eval()'d code on line 1
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>