Arquivos
hhvm/hphp/test/quick/cgetm_retbase.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

16 linhas
267 B
PHP

<?php
function f() { $a = array(); $a[] = 1; return $a; }
function nonHphpArray( ) {
apc_add('foo', array(1, 2, 3));
return apc_fetch('foo');
}
function test1() {
return f()[0];
}
function main() {
var_dump(test1());
var_dump(nonHphpArray()[0]);
}
main();