Can you update the php version?
The function it is complaining about was introduced in version 5.2.3
The other option is to remove that line of code from the connection file, but it could cause issues with accented characters sometimes not working properly.