When there is a constructor, the strange behavior mentioned in my last post doesn't occur. My guess is that php was treating reftest() as a constructor (maybe because it was the first function?) and running it upon instantiation.
<?php class reftest {
public $a = 1;
public $c = 1;
public function __construct()
{
return 0;
}
public function reftest()
{ $b =& $this->a; $b++;
}
public function reftest2()
{ $d =& $this->c; $d++;
}
}