Arquivos
hhvm/hphp/test/quick/global_dequeue_pop.php
T
ptarjan 503f75d08b Rename test directories
These names don't make sense now that we run both suites the same
way.
2013-04-17 09:06:51 -07:00

22 linhas
246 B
PHP

<?php
function foo() {
$a = $GLOBALS;
$x = count($a);
array_pop($a);
$y = count($a);
var_dump($x - $y);
}
function bar() {
$b = $GLOBALS;
$x = count($b);
array_shift($b);
$y = count($b);
var_dump($x - $y);
}
foo();
bar();