PHP5.3 fix