Fixes login issues for some PHP flavors.