mirror of
https://github.com/php/php-src.git
synced 2024-10-07 01:36:14 +00:00
315f4f5658
Took the old PHP 3 regression testing framework and rewrote it in PHP. Should work on both Windows and UNIX, however I have not tested it on Windows. See tests/README for how to write tests. Added the PHP 3 tests and converted most of them.
40 lines
1.0 KiB
PHP
40 lines
1.0 KiB
PHP
--TEST--
|
|
eval() test
|
|
--POST--
|
|
--GET--
|
|
--FILE--
|
|
<?php
|
|
|
|
error_reporting(0);
|
|
|
|
eval("cfunction 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()!
|