mirror of
https://github.com/php/php-src.git
synced 2024-09-23 19:07:26 +00:00
801e46d8c0
I should have do this ....
23 lines
286 B
PHP
23 lines
286 B
PHP
--TEST--
|
|
Test count() function : count on symbol table
|
|
--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)
|