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.
38 lines
241 B
PHP
38 lines
241 B
PHP
--TEST--
|
|
eval() test
|
|
--POST--
|
|
--GET--
|
|
--FILE--
|
|
<?php
|
|
|
|
error_reporting(0);
|
|
|
|
$message = "echo \"hey\n\";";
|
|
|
|
for ($i=0; $i<10; $i++) {
|
|
eval($message);
|
|
echo $i."\n";
|
|
}
|
|
--EXPECT--
|
|
|
|
hey
|
|
0
|
|
hey
|
|
1
|
|
hey
|
|
2
|
|
hey
|
|
3
|
|
hey
|
|
4
|
|
hey
|
|
5
|
|
hey
|
|
6
|
|
hey
|
|
7
|
|
hey
|
|
8
|
|
hey
|
|
9
|