Opened 7 years ago
Closed 7 years ago
Last modified 7 years ago
#12981 closed Bug Report - Crash (fixed)
$this is disallowed as a parameter in PHP 7.1
Reported by: | Owned by: | Stuart Auchterlonie | |
---|---|---|---|
Priority: | minor | Milestone: | 0.28.2 |
Component: | Plugin - MythWeb | Version: | 0.28.0 |
Severity: | medium | Keywords: | Mythweb, PHP 7.1 |
Cc: | Ticket locked: | no |
Description
Under PHP 7.1 $this was removed from being accepted as a parameter name, and the code within includes/utils.php, function _or uses $this as one of the parameters, which causes mythweb to completely break under php 7.1. It seems to work under php 7.1 here after changing it to a different value, but there could still be other places where it is broken. The code in question is in https://github.com/MythTV/mythweb/blob/master/includes/utils.php#L220 . By changing the value mythweb does seem to work using php 7.1, but there could be other parts that are subtly affected. This seems to be the related RFC for it, slated for PHP 7.1: https://wiki.php.net/rfc/this_var
In 52ff70ecfdad06b0b66f8a5ec67cefc1b55a1861/mythweb: