The following code generates undefined variable warnings on windows. This simple version nevertheless appears to work but a more complex example fails completely. Any ideas as to what is wrong. Fails on 4.0.3pl1 and 4.0.6.
<?php
class Atest {
var $i;
function Atest() {
$this->$i = 4321;
return $this;
}
function getit() {
return $this->$i;
}
}
$c = new ATest();
echo $c->getit();
?>