
<?php
class foo {
	function foo() {
	}
	function __call($m, $a, &$r) {
		return true;
	}
	function &bar() {
		global $g;
		var_dump($g);
		return $g;
	}
}

$g = 456;

overload('foo');

$a = new foo();
var_dump($a->bar());
?>
