Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 833075

Summary: dev-php/PEAR-Mail_mimeDecode-1.5.6-r2 is not compatible with PHP 8
Product: Gentoo Linux Reporter: Jaco Kroon <jaco>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED FIXED    
Severity: normal Keywords: PullRequest
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/24144
Whiteboard:
Package list:
Runtime testing required: ---

Description Jaco Kroon 2022-02-10 11:20:15 UTC
PHP Fatal error:  Uncaught Error: Call to undefined function create_function() in /usr/share/php/Mail/mimeDecode.php:837

https://www.php.net/manual/en/function.create-function.php

There does not seem to be a newer version available.  Relevant bug:

https://pear.php.net/bugs/bug.php?id=23775

I tried to submit a patch but the system is broken, ended up sending an email to the pear-dev list, so time will tell.

Reproducible: Always
Comment 1 Larry the Git Cow gentoo-dev 2022-02-10 12:05:55 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a1b1d39235dcf73d7ccac2e6fd73a391ee3fa640

commit a1b1d39235dcf73d7ccac2e6fd73a391ee3fa640
Author:     Jaco Kroon <jaco@uls.co.za>
AuthorDate: 2022-02-10 11:23:15 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-02-10 12:05:46 +0000

    dev-php/PEAR-Mail_mimeDecode: add patch for PHP8 compatibility
    
    Closes: https://bugs.gentoo.org/833075
    Package-Manager: Portage-3.0.30, Repoman-3.0.3
    Signed-off-by: Jaco Kroon <jaco@uls.co.za>
    Closes: https://github.com/gentoo/gentoo/pull/24144
    Signed-off-by: Sam James <sam@gentoo.org>

 .../PEAR-Mail_mimeDecode-1.5.6-r3.ebuild           | 24 ++++++++++++++++++++++
 ...PEAR-Mail_mimeDecode-1.5.6-r3-php8_compat.patch | 12 +++++++++++
 2 files changed, 36 insertions(+)