Arquivos
hhvm/hphp/test/vm/crossUnitRefs.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

23 linhas
232 B
PHP

<?
include_once "crossUnitRefsInc.php";
class A {
public $foo;
public function f() {
inOtherUnit($this->foo, array());
}
}
function main() {
$a = new A();
$a->foo = 12;
$a->f();
inOtherUnit(1, 2);
}
main();