update 1.2.7 for php