Arquivos
hhvm/hphp/test/vm/setHelperPreError.php
T
Jordan Delong 363d1bb20f Code move src/ -> hphp/
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.
2013-02-11 02:10:41 -08:00

26 linhas
251 B
PHP

<?php
print "Test begin\n";
# BindM.
$v = array(0);
$w = 1;
$w[0] =& $v[0];
var_dump($v);
var_dump($w);
# FPassM.
function f(&$x) {
var_dump($x);
}
$x = 1;
f($x[0]);
var_dump($x);
# VGetM.
$y = 1;
$z = &$y[0];
var_dump($z);
print "Test end\n";