PHP: Fix for API and extensions paths.