Arquivos
hhvm/hphp/test/slow/array/promote_string.php
T
mwilliams 49aa101879 Fix crashes with empty string as SetElem base
It needs to convert the key to a real TypedValue, and needs
to side exit (via throw).
2013-06-19 09:56:49 -07:00

12 linhas
152 B
PHP

<?php
function test($a, $f) {
$a[0] = $f;
$a[$f] = $f;
$a[1] = 1;
$a['foo'] = 'foo';
return $a;
}
var_dump(test("", "f".isset($g)?"x":""));