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.
25 linhas
497 B
PHP
25 linhas
497 B
PHP
<?php
|
|
|
|
function foo($a, &$b, &$c, $d) {
|
|
$a = 10;
|
|
$b = 20;
|
|
$c *= 10;
|
|
$d *= 10;
|
|
echo (__METHOD__."(): a: ".$a.", b: ".$b.", c: ".$c.", d: ".$d."\n");
|
|
}
|
|
|
|
function main() {
|
|
$a = 1;
|
|
$b = 2;
|
|
$c = 3;
|
|
$d = 4;
|
|
echo (__METHOD__."(): a: ".$a.", b: ".$b.", c: ".$c.", d: ".$d."\n");
|
|
foo($a, $b, $c, $d);
|
|
echo (__METHOD__."(): a: ".$a.", b: ".$b.", c: ".$c.", d: ".$d."\n");
|
|
|
|
sscanf("123", "%d", $number); // should not warn that $number is undefined
|
|
var_dump($number);
|
|
}
|
|
|
|
main();
|