Arquivos
hhvm/hphp/test/slow/array_iterator/441.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

11 linhas
253 B
PHP

<?php
$arr = array('bar', 'bar', 'bar', 'bar', 'bar', 'bar', 'foo');
function foo() {
var_dump(__FUNCTION__); global $arr; $arr[] = 'bar';
}
function bar() { var_dump(__FUNCTION__); }
reset($arr);
while ($func = each($arr)) { $f = $func[1]; $f(); }