Fix EZP-22973 - Unable to run legacy tests on postgres due to PHP Fatal error: Call to undefined function mysql_escape_string()