I really can't see why this would fix the issue, and tinkering with core code should, as mentioned above, be avoided.
Installing and upgrading help
php7 compatibility with external authentication
This discussion has been locked so you can no longer reply to it.