Modify PHP to exclude deprecated function.