mirror of
https://github.com/php/php-src.git
synced 2024-12-03 06:44:07 +08: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.
26 lines
232 B
PHP
26 lines
232 B
PHP
--TEST--
|
|
Testing nested functions
|
|
--POST--
|
|
--GET--
|
|
--FILE--
|
|
<?php
|
|
function F()
|
|
{
|
|
$a = "Hello ";
|
|
return($a);
|
|
}
|
|
|
|
function G()
|
|
{
|
|
static $myvar = 4;
|
|
|
|
echo "$myvar ";
|
|
echo F();
|
|
echo "$myvar";
|
|
}
|
|
|
|
G();
|
|
?>
|
|
--EXPECT--
|
|
4 Hello 4
|