Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-26247

Deprecated/Removed mysql-function is used in database-class

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Confirmed
    • Priority: Blocker
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      When ezmysqli is configured eZ correctly uses ezmysqlidb.php, however in ezpublish_legacy/lib/ezdb/classes/ezmysqlidb.php within function escapeString the MySQL-function mysql_escape_string is used.

      mysql_escape_string is deprecated in PHP 4.3 and removed in PHP 7, so eZ Publish won't work with PHP 7.

      ezpublish_legacy/lib/ezdb/classes/ezmysqlidb.php:
      eZDebug::writeDebug( 'escapeString called before connection is made', _METHOD_ );
      return mysql_escape_string( $str );

        Attachments

          Activity

            People

            Assignee:
            tomasz.madeyski-obsolete@ez.no Tomasz Madeyski (Inactive)
            Reporter:
            alex2 Alex Yes
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: