php53 compatibility fixed