363d1bb20f
This change is mostly for FB internal organizational reasons. Building is not effected beyond the fact that the target now lands in hphp/hhvm/hhvm rather than src/hhvm/hhvm.
16 linhas
267 B
PHP
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();
|