TypePHP 编译器
https://swoole.com/aot/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
343 B
30 lines
343 B
--TEST--
|
|
Function call with global and static variables
|
|
--FILE--
|
|
<?php
|
|
function Test()
|
|
{
|
|
static $a=1;
|
|
global $b;
|
|
$c = 1;
|
|
$b = 5;
|
|
echo "$a $b $c\n";
|
|
$a++;
|
|
$c++;
|
|
echo "$a $b $c\n";
|
|
}
|
|
|
|
function main() {
|
|
error_reporting(0);
|
|
Test();
|
|
Test();
|
|
Test();
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
1 5 1
|
|
2 5 2
|
|
2 5 1
|
|
3 5 2
|
|
3 5 1
|
|
4 5 2
|