Details
-
Bug
-
Status: Unverified Fix
-
Resolution: Fixed
-
None
Description
When running the MySQL Upgrader tool (STK 1.0.7) running on PHP 5.4.3 multiple lines of
[phpBB Debug] PHP Warning: in file [ROOT]/tools/support/mysql_upgrader.php on line 157: Illegal string offset 'limit'
|
PHP Manual - Strings shows
As of PHP 5.4 string offsets have to either be integers or integer-like strings, otherwise a warning will be thrown. Previously an offset like "foo" was silently cast to 0.
From some quick testing replacing lines 155-157 in tools/support/mysql_upgrader.php
if (isset($umil->db_tools->dbms_type_map['mysql_40'][$orig_column_type . ':']['limit'][0]))
|
{
|
switch ($umil->db_tools->dbms_type_map['mysql_40'][$orig_column_type . ':']['limit'][0])
|
if (isset($umil->db_tools->dbms_type_map['mysql_40'][$orig_column_type . ':'][0]))
|
{
|
switch ($umil->db_tools->dbms_type_map['mysql_40'][$orig_column_type . ':'][0])
|