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.
29 linhas
382 B
PHP
29 linhas
382 B
PHP
<?php
|
|
for ($i = 0; $i < 3; $i++) {
|
|
$b = 30;
|
|
$a =& $b;
|
|
$b = 60;
|
|
var_dump($a, $b);
|
|
$a = "foo";
|
|
var_dump($a, $b);
|
|
unset($a);
|
|
unset($b);
|
|
}
|
|
for ($i = 0; $i < 2; $i++) {
|
|
$b = array(1, 2, 3);
|
|
$a =& $b;
|
|
$b = 60;
|
|
var_dump($a, $b);
|
|
$a = "foo";
|
|
var_dump($a, $b);
|
|
}
|
|
function f() {
|
|
$b = 30;
|
|
$a =& $b;
|
|
$b = array();
|
|
$a =& $b;
|
|
$b = 60;
|
|
var_dump($a);
|
|
}
|
|
f();
|