Bug 27808

Summary: php 8.0.0 breaks mythtv-mythweb.
Product: Mageia Reporter: Alan Richter <arichter>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: Normal CC: davidwhodgins, lewyssmith
Version: CauldronKeywords: UPSTREAM
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: mythtv-mythweb-31.0-3.mga8.src.rpm CVE:
Status comment:

Description Alan Richter 2020-12-13 01:11:44 CET
Description of problem:
Mythtv-mythweb appears to be broken after upgrade to php8.0.0

Version-Release number of selected component (if applicable):
31.0-3

How reproducible:
Always, presuming php 8.0.0 is installed, mythweb worked with 7.4.13.

Steps to Reproduce:
1.  Install and configure mythtv-backend.
2.  Install mythtv-mythweb.
3.  Connect to mythweb.

When a connection is made this is what appears:
Fatal error: Uncaught Error: Undefined constant "ASSERT_QUIET_EVAL" in /var/www/mythweb/includes/errors.php:50 Stack trace: #0 /var/www/mythweb/includes/init.php(21): require_once() #1 /var/www/mythweb/mythweb.php(20): require_once('/var/www/mythwe...') #2 {main} thrown in /var/www/mythweb/includes/errors.php on line 50

I don't know is this is a Mageia problem, and I suspect it isn't but I haven't found any other sources for a fix.
Comment 1 Dave Hodgins 2020-12-13 01:18:56 CET
Looks related to https://bugs.php.net/bug.php?id=75769&edit=3
I expect the fix will be to remove the assert call.

CC: (none) => davidwhodgins

Comment 2 Alan Richter 2020-12-13 05:03:23 CET
I thought that too but this call has been deprecated:

https://www.php.net/manual/en/function.assert.php

so when I take it out, I then get this:

Fatal error: Uncaught Error: Call to undefined function get_magic_quotes_gpc() in /var/www/mythweb/includes/cleanup.php:50 Stack trace: #0 /var/www/mythweb/includes/init.php(30): require_once() #1 /var/www/mythweb/mythweb.php(20): require_once('/var/www/mythwe...') #2 {main} thrown in /var/www/mythweb/includes/cleanup.php on line 50

Which makes me thing that the MythTV guys need to get mythweb up to snuff for php 8.0.0 and that this is absolutely NOT a Mageia bug.  

I know next to nothing about php beyond that it is rapidly evolving and not something with backwards compatibility in mind.  

I've chased this down a bit but the mythweb boffins need to do some things to get caught up to php 8.0.0.
Comment 3 Lewis Smith 2020-12-13 21:14:39 CET
Thank you Alan for the report & research (also DaveH).
From the previous comment, it looks like an upstream bug. Can you raise one chez MythTV, please:
 https://code.mythtv.org/trac/wiki/TicketHowTo
and when you have a bug reference, put its URL in the header URL field of *this* bug. And when it gets answered, say so here. They might say it is a Mageia problem after all...
I could find no bug at MythTV about "php 8".

Keywords: (none) => UPSTREAM
CC: (none) => lewyssmith

Comment 4 Alan Richter 2020-12-26 18:44:12 CET
This is a MythTV issue, not a Mageia problem.

Resolution: (none) => INVALID
Status: NEW => RESOLVED