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

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • None
    • None
    • 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

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

            Dates

              Created:
              Updated: