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+.
Created attachment 234674 [details] mail_mimeDecode patch
Thanks for the patch, is that was reported upstream?
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...
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(+)
Committed, thanks!