PHP Port improvements.