added changes for php55