Fixed PHP 5.1.0 / 5.0.5 reference problem, closes #80