Fix remaining PHP7 compatibility problems
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
Medium
|
Cecilia Vela Gurovic |
Bug Description
Mahara 16.10.4.
Used https:/
-------
Parse error: mahara/
697| $db->query("USE $temp_db_name");
698|
> 699| $store =& new Auth_OpenID_
700| if (!$store-
701| $this->fail("Failed to create tables");
Unexpected 'new' (T_NEW)
-------
Parse error: mahara/
11| * @link http://
12| */
> 13| class Bool extends BoolFilter
14| {
15| }
Fatal error: Cannot use 'Bool' as class name as it is reserved
-------
Parse error: mahara/
11| * @link http://
12| */
> 13| class Bool extends BoolQuery
14| {
15| }
Fatal error: Cannot use 'Bool' as class name as it is reserved
-------
Parse error: mahara/
9| * @author James Boehmer <email address hidden>
10| */
> 11| class Null extends NullTransport
12| {
13| }
Fatal error: Cannot use 'Null' as class name as it is reserved
-------
There is also another tool that finds several other errors in the codebase, https:/
File: search/
> Line 1281: Removed regular expression modifier "e" used
preg_
There is another modifier "e" usage, but looks like it is only used in a 2009 upgrade step. There are MANY more warnings, deprecations and errors reported.
Yet another tool to check compatibility is https:/
Cheers!
Changed in mahara: | |
assignee: | nobody → Cecilia Vela Gurovic (ceciliavg) |
Changed in mahara: | |
status: | Triaged → In Progress |
Changed in mahara: | |
status: | In Progress → Fix Committed |
Changed in mahara: | |
status: | Fix Committed → Fix Released |
Hi Mark,
Thanks for the report. It seems you know your way around PHP. Do you want to provide a fix for these issues and submit it to our code review system for inclusion into Mahara? You can find more information on how to set up the connection to Gerrit at https:/ /wiki.mahara. org/wiki/ Developer_ Area/Contributi ng_Code
Cheers
Kristina