Arquivos
hhvm/hphp/test/vm/setmstr.php
T
mwilliams 0ddaed959d Fix assert in CodeGenerator::emitTypeCheck
The vector translator produced a type that was
boxed-array-or-string, which we couldnt guard on.

Since applying a SetM to a string will almost always produce
a string, change it to report string instead (which will still
be guarded on).
2013-04-01 11:51:30 -07:00

11 linhas
100 B
PHP

<?php
function foo(&$str) {
$str[3] = '.';
$str .= "\n";
}
$a = "abc";
foo($a);
var_dump($a);