class foo {
function foo() {
global $bar;
$bar =& $this;
}
}
function foobar() {
global $bar;
...
}
Should $bar be available to foobar() ? It seems to be undefined. If I don't use a reference in the constructor (i.e. $bar = $this), then $bar is available, but it's a copy.