Need to tidy up code for deprecated php functions
Bug #1752743 reported by
Robert Lyon
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
Medium
|
Rebecca Blundell |
Bug Description
The following functions that are used in Mahara will be deprecated for PHP 7.2
- create_function()
- each()
So should be replaced with better code.
the create_function() can be replaced with the use of an anonymous function and each() should be altered to work with a foreach loop instead
And the function assert() should be checked to make sure the argument is not a string to be evaluated
Changed in mahara: | |
milestone: | none → 18.04.0 |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in mahara: | |
milestone: | 18.04.0 → 18.10.0 |
Changed in mahara: | |
assignee: | nobody → Rebecca Blundell (rjb-dev) |
status: | Confirmed → In Progress |
Changed in mahara: | |
status: | In Progress → Fix Committed |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Patch for "master" branch: https:/ /reviews. mahara. org/8905