php 5.3 some more fixes