503f75d08b
These names don't make sense now that we run both suites the same way.
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();
|