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.
25 lines
352 B
25 lines
352 B
--TEST--
|
|
Test count() function : count on symbol table
|
|
--SKIPIF--
|
|
<?php die("skip GLOBALS is not supported in AOT"); ?>
|
|
|
|
--FILE--
|
|
<?php
|
|
|
|
$c1 = 0;
|
|
$c2 = 0;
|
|
$a = 1;
|
|
$b = 1;
|
|
$c1 = count($GLOBALS);
|
|
unset($a);
|
|
unset($GLOBALS["b"]);
|
|
$c2 = count($GLOBALS);
|
|
|
|
var_dump($c1 - $c2);
|
|
$c = 1;
|
|
$c1 = count($GLOBALS);
|
|
var_dump($c1 - $c2);
|
|
?>
|
|
--EXPECT--
|
|
int(2)
|
|
int(1)
|
|
|