Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 833075 - dev-php/PEAR-Mail_mimeDecode-1.5.6-r2 is not compatible with PHP 8
Summary: dev-php/PEAR-Mail_mimeDecode-1.5.6-r2 is not compatible with PHP 8
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2022-02-10 11:20 UTC by Jaco Kroon
Modified: 2022-02-10 12:05 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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(+)