← Back to team overview

mahara-contributors team mailing list archive

[Bug 1566127] Re: PHP 5.3 incompatible array declarations

 

Kristina,

Regarding OAuth, this particular issue actually has nothing to do with
OAuth itself. It's just that the phpmailer OAuth module happens to be
where the affected code is located. Probably because the OAuth module
was written more recently than the rest, since the "$x = []" array
declaration syntax is newer than the "$x = array()" declaration syntax.

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1566127

Title:
  PHP 5.3 incompatible array declarations

Status in Mahara:
  Fix Committed
Status in Mahara 15.10 series:
  Fix Committed
Status in Mahara 16.04 series:
  Fix Committed
Status in Mahara 16.10 series:
  Fix Committed

Bug description:
  In lib/graph.php there's a spot where an array is initialized using
  the easier array syntax introduced in PHP 5.4:

      $defaultcolours =
  ['187,35,39','59,140,46','61,132,203','227,171,0','0,74,136','139,62,138','220,109,10','29,183,197','116,116,116','62,35,110'];

  Since we're still supporting PHP 5.3, this needs to use the array()
  pseudo-function instead.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1566127/+subscriptions


References