Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-11524

MySQL Upgrader throws warnings on PHP 5.4

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.0.12-RC2
    • 3.0.11
    • Other
    • None
    • PHP 5.4.12

      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 . ':'`.

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

              Created:
              Updated:
              Resolved: