revert php 5.4 changes