[mythtv-commits] Ticket #13368: Fix PHP warning and compilation error in mythweb search
MythTV
noreply at mythtv.org
Tue Jan 1 23:02:14 UTC 2019
#13368: Fix PHP warning and compilation error in mythweb search
----------------------------------+---------------------------------
Reporter: k-ross | Owner: Stuart Auchterlonie
Type: Patch - Bug Fix | Status: new
Priority: minor | Milestone: needs_triage
Component: Plugin - MythWeb | Version: Unspecified
Severity: medium | Keywords:
Ticket locked: 0 |
----------------------------------+---------------------------------
I believe this started happening since upgrading PHP to 7.3.
First, it fixes the following warning:
Warning: "continue" targeting switch is equivalent to "break". Did you
mean to use "continue 2"?
Secondly, it fixes a regular expression compilation error:
Warning at /usr/share/mythtv/mythweb/modules/tv/search.php, line 464:
!!NoTrans: preg_replace(): Compilation failed: invalid range in character
class at offset 3!!
This was caused by using "-" inside square brackets "[]". If you want to
search explicitly for "-", you need to have the "-" at the beginning or
end, not in the middle, otherwise it thinks you're trying to do a range,
like "a-z".
--
Ticket URL: <https://code.mythtv.org/trac/ticket/13368>
MythTV <http://www.mythtv.org>
MythTV Media Center
More information about the mythtv-commits
mailing list