Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-11524

MySQL Upgrader throws warnings on PHP 5.4

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 3.0.11
    • 3.0.12-RC2
    • Other
    • None
    • PHP 5.4.12

    Description

      The upgrader produces this warning several times:

      [phpBB Debug] PHP Warning: in file [ROOT]/upgrader.php on line 154: Illegal string offset 'limit'

      The problem is that the check on line 152 no longer works on PHP 5.4:

      if (isset($dbms_type_map['mysql_40'][$orig_column_type . ':']['limit'][0]))

      The limit element does not exist, but

      isset($...['limit'][0])

      returns true instead of false. Attempting to access that element throws a warning and returns the first letter of `$orig_column_type . ':'`.

      Attachments

        Activity

          People

            bantu Andreas Fischer [X] (Inactive)
            Noxwizard Patrick Webster
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: