Upgrading php to fix memory leak