← Back to team overview

mahara-contributors team mailing list archive

[Bug 1566127] Re: PHP 5.3 incompatible array declarations

 

I also fixed some occurrences of this in our Behat code, for good
measure. (Surprisingly, the Behat core library still supports PHP 5.3!)

The Eclipse PHP validator also notices it in the PHPMailer library, but
only in the classes for handling oauth, which we aren't actually using,
so that shouldn't be a problem.

** Summary changed:

- PHP 5.4 array initialization, in lib/graph.php
+ PHP 5.3 incompatible array declarations

-- 
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:
  In Progress
Status in Mahara 15.10 series:
  In Progress
Status in Mahara 16.04 series:
  In Progress
Status in Mahara 16.10 series:
  In Progress

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