mirror of
https://github.com/php/php-src.git
synced 2024-11-25 02:44:58 +08:00
37 lines
1.0 KiB
PHP
37 lines
1.0 KiB
PHP
--TEST--
|
|
eval() test
|
|
--FILE--
|
|
<?php
|
|
|
|
error_reporting(0);
|
|
|
|
eval("function test() { echo \"hey, this is a function inside an eval()!\\n\"; }");
|
|
|
|
$i=0;
|
|
while ($i<10) {
|
|
eval("echo \"hey, this is a regular echo'd eval()\\n\";");
|
|
test();
|
|
$i++;
|
|
}
|
|
--EXPECT--
|
|
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()!
|
|
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()!
|
|
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()!
|
|
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()!
|
|
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()!
|