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

MySQL Upgrader throws warnings on PHP 5.4

    Details

    • Type: Bug
    • Status: Unverified Fix
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.11
    • Fix Version/s: 3.0.12-RC2
    • Component/s: Other
    • Labels:
      None
    • Environment:
      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 . ':'`.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            bantu Andreas Fischer
            Reporter:
            Noxwizard Patrick Webster
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development