Mailing List Archive

Ticket #13406: Patches to fix php count warnings with PHP 7.2
#13406: Patches to fix php count warnings with PHP 7.2
----------------------------------+---------------------------------
Reporter: daraden | Owner: Stuart Auchterlonie
Type: Patch - Bug Fix | Status: new
Priority: minor | Milestone: needs_triage
Component: Plugin - MythWeb | Version: Master Head
Severity: low | Keywords:
Ticket locked: 0 |
----------------------------------+---------------------------------
These patches are to resolve count() warnings when using PHP 7.2. Changes
just check if the object is not null before calling the count function,
otherwise the count variable is set to 0.

link to PHP manual noting the count() behavior as an incompatible change
in PHP 7.2[https://secure.php.net/manual/en/migration72.incompatible.php]

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13406>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13406: Patches to fix php count warnings with PHP 7.2 [ In reply to ]
#13406: Patches to fix php count warnings with PHP 7.2
------------------------------+-------------------------------------
Reporter: daraden | Owner: Stuart Auchterlonie
Type: Patch - Bug Fix | Status: new
Priority: minor | Milestone: needs_triage
Component: Plugin - MythWeb | Version: Master Head
Severity: low | Resolution:
Keywords: | Ticket locked: 0
------------------------------+-------------------------------------
Changes (by daraden):

* Attachment "mythwebcount.patch" added.

mythweb count warning patch

--
Ticket URL: <https://code.mythtv.org/trac/ticket/13406>
MythTV <http://www.mythtv.org>
MythTV Media Center
Re: Ticket #13406: Patches to fix php count warnings with PHP 7.2 [ In reply to ]
#13406: Patches to fix php count warnings with PHP 7.2
------------------------------+-------------------------------------
Reporter: daraden | Owner: Stuart Auchterlonie
Type: Patch - Bug Fix | Status: new
Priority: minor | Milestone: needs_triage
Component: Plugin - MythWeb | Version: Master Head
Severity: low | Resolution:
Keywords: | Ticket locked: 0
------------------------------+-------------------------------------
Changes (by daraden):

* Attachment "mythcount.patch" added.

mythtv php bindings count patch

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