PHP 8 compatibility causing error with PHP 7.4 for XML-RPC
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Mahara | ||||||
22.10 |
Fix Released
|
High
|
Unassigned | |||
23.04 |
Fix Released
|
High
|
Unassigned |
Bug Description
Mahara: 22.10.0
DB: Postgres 14.3
OS: Linux 20.04
Browser: n/a
The use of "mixed" type is supported in PHP 8.0+.
It was introduced in this file:
https:/
with 2 functions:
1. current() : mixed
2. key() : mixed
With PHP 7.4, when configuring institutions with Moodle integration (XML-RPC for example), the following error is received:
"PHP message: [WAR] 40 (lib/errors.
A type should not be set for these functions until it's fully implemented for PHP 8.0+.
I only found those 2 instances in Mahara 22.10
summary: |
- Mahara 22.10 - PHP 8.0 compatibility causing error with PHP 7.4 + PHP 8 compatibility causing error with PHP 7.4 for XML-RPC |
Changed in mahara: | |
milestone: | 23.04.0 → none |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
no longer affects: | mahara |
Patch for "main" branch: https:/ /reviews. mahara. org/c/mahara/ +/13674