Created attachment 252371 [details] patch Simple fix adopted from: https://stackoverflow.com/questions/66388326/phpunit-php-fatal-error-uncaught-error-call-to-undefined-function-each
Created attachment 252372 [details] patch
Created attachment 252379 [details] patch Works for me :)
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=4512883f38bd8038bde15205df4afb841957a140 commit 4512883f38bd8038bde15205df4afb841957a140 Author: Michael Gmelin <grembo@FreeBSD.org> AuthorDate: 2024-12-03 15:47:54 +0000 Commit: Michael Gmelin <grembo@FreeBSD.org> CommitDate: 2024-12-03 15:47:54 +0000 devel/phabricator: Fix phpmailer with PHP 8 PR: 280512 Reported by: Ivan Rozhuk <rozhuk.im@gmail.com> devel/phabricator/Makefile | 5 +++-- ...xternals_phpmailer_class.phpmailer-lite.php (new) | 11 +++++++++++ ...tch-externals_phpmailer_class.phpmailer.php (new) | 11 +++++++++++ .../patch-externals_phpmailer_class.smtp.php (new) | 20 ++++++++++++++++++++ 4 files changed, 45 insertions(+), 2 deletions(-)
Thank you very much for reporting and providing a patch, it kind of fell through the cracks so I just fixed it now, sorry for that. The actual fix is slightly different from the original patch, as the arrays returned by preg_split and explode are actual simply flat arrays (so no need to do key/value here, simple foreach is enough). If you're interested and have the time, you might also want to take a look at devel/phorgeit-phorge, which is the actively maintained fork of phabricator (which apparently already had the fix to phpmailer).
(In reply to Michael Gmelin from comment #4) devel/phorgeit-phorge - no, thanks ) We migrate to gitea since it have PRs from git commits/branches and it woork faster on repo import. Phabricator in our env is in "legacy" state, only wiki migration require us to keep it.