fix path to extensions in php.ini when suffix is in use

similar fix in 5.2 branch: 7bfb055761abf8078ee759890883b174cc8c0334