php 5.3 more fixes