php 7.2 causes problems in Mahara

Bug #1767945 reported by Rebecca Blundell
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
High
Rebecca Blundell

Bug Description

After upgrading to php 7.2 accidentally, I discovered it caused a lot of problems in Mahara. I'm going to investigate further and report the problems I discover on this page.

Changed in mahara:
assignee: nobody → Rebecca Blundell (rjb-dev)
status: New → In Progress
Revision history for this message
Kristina Hoeppner (kris-hoeppner) wrote :

Targetting only to 18.10 as 18.04 doesn't yet officially support PHP 7.2.

Changed in mahara:
milestone: none → 18.10.0
importance: Undecided → High
Revision history for this message
Rebecca Blundell (rjb-dev) wrote :

Things seem better post-18.04 upgrade, which is good.

I am exploring a potential issue with failing email causing a stack trace to be sent to a user, but I haven't found a way of replicating it yet.

Behat components/dependencies need upgrading to work, but once that is done, tests seem to run Ok. Currently there is an issue with the Behat2Renderer.php file in the html report. It uses count() as a test whether object properties return null. As in 7.2 passing null to count results in a warning, running tests currently produces a long list of warnings, so we should probably change that.

Revision history for this message
Rebecca Blundell (rjb-dev) wrote :

Added bug to fix behat issues above: https://bugs.launchpad.net/mahara/+bug/1772792

Revision history for this message
Rebecca Blundell (rjb-dev) wrote :

The each() function is deprecated in 7.2, which causes a warning on the first call.
each() is used in a few places in mahara code, but mostly in 'Dwoo'. There may be an upgrade for that.

Robert Lyon (robertl-9)
Changed in mahara:
status: In Progress → Fix Committed
Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.