Search code examples
phpmysqlcodeignitermysqlimysql-real-escape-string

CodeIgniter and PHP 5.5.14 - mysql_escape_string() issue


I've this issue after setting up CodeIgniter with PHP 5.5.14

A PHP Error was encountered
Severity: 8192
Message: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead.
Filename: mysqli/mysqli_driver.php
Line Number: 320

It seems that mysql_real_escape_string() functions has been deprecated on 5.5.14, right?

CodeIgniter have no compatibility with this PHP version??

Any ideas??

Thanks in advance!

Giovanni


Solution

  • There was an error with the MySQL configuration (I'm on a MacBook Pro). In practice, mysql's tmp path must be setup on mac.

    After this step, my issue has disappeared!