summaryrefslogtreecommitdiff
path: root/ext/standard/tests/array/count_symbol_table.phpt
blob: b7e0a2e8b12983236d10360bb12b728967867360 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--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)