[mythtv-commits] Ticket #12981: $this is disallowed as a parameter in PHP 7.1

MythTV noreply at mythtv.org
Tue Jan 24 08:47:06 UTC 2017


#12981: $this is disallowed as a parameter in PHP 7.1
------------------------------------+------------------------------
     Reporter:  jdgbolt@…           |      Owner:  stuarta
         Type:  Bug Report - Crash  |     Status:  new
     Priority:  minor               |  Milestone:  unknown
    Component:  Plugin - MythWeb    |    Version:  0.28.0
     Severity:  medium              |   Keywords:  Mythweb, PHP 7.1
Ticket locked:  0                   |
------------------------------------+------------------------------
 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

--
Ticket URL: <https://code.mythtv.org/trac/ticket/12981>
MythTV <http://www.mythtv.org>
MythTV Media Center


More information about the mythtv-commits mailing list