Revert "Fixes login issues for some PHP flavors."

This reverts commit 0e2a6154aafd9225288521f7f32c923aad741884.