Bug 264665 - mail/pear-Mail_mimeDecode: php80 patch
Summary: mail/pear-Mail_mimeDecode: php80 patch
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Danilo G. Baio
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-14 09:22 UTC by Krzysztof
Modified: 2022-06-18 04:08 UTC (History)
0 users

See Also:
dbaio: maintainer-feedback+


Attachments
poudriere testport log (20.94 KB, text/plain)
2022-06-14 09:22 UTC, Krzysztof
no flags Details
mail_mimeDecode patch (1.04 KB, patch)
2022-06-14 09:23 UTC, Krzysztof
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Krzysztof 2022-06-14 09:22:29 UTC
Created attachment 234673 [details]
poudriere testport log

There is php anonymous function code inside pear-Mail_mimeDecode. I've done small patch which supports such anonymous function with php8+.
Comment 1 Krzysztof 2022-06-14 09:23:23 UTC
Created attachment 234674 [details]
mail_mimeDecode patch
Comment 2 Danilo G. Baio freebsd_committer freebsd_triage 2022-06-15 01:24:04 UTC
Thanks for the patch, is that was reported upstream?
Comment 3 Krzysztof 2022-06-15 05:57:57 UTC
Well: no I did no report upstream. I've checked mail_mimeDecode homepage but it seems that was not developed (updated?) for many many years...
Comment 4 commit-hook freebsd_committer freebsd_triage 2022-06-18 04:07:46 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=fd5978a407e28d5ef4ae0c8c1bf5f5a755a72eaa

commit fd5978a407e28d5ef4ae0c8c1bf5f5a755a72eaa
Author:     Krzysztof <ports@bsdserwis.com>
AuthorDate: 2022-06-18 04:02:42 +0000
Commit:     Danilo G. Baio <dbaio@FreeBSD.org>
CommitDate: 2022-06-18 04:05:59 +0000

    mail/pear-Mail_mimeDecode: Fix runtime with PHP 8

    PR:             264665

 mail/pear-Mail_mimeDecode/Makefile                            |  1 +
 .../files/patch-Mail_mimeDecode.php (new)                     | 11 +++++++++++
 2 files changed, 12 insertions(+)
Comment 5 Danilo G. Baio freebsd_committer freebsd_triage 2022-06-18 04:08:18 UTC
Committed, thanks!