Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Jun 2022 04:06:45 GMT
From:      "Danilo G. Baio" <dbaio@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: fd5978a407e2 - main - mail/pear-Mail_mimeDecode: Fix runtime with PHP 8
Message-ID:  <202206180406.25I46jSS010682@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by dbaio:

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 +
 mail/pear-Mail_mimeDecode/files/patch-Mail_mimeDecode.php | 11 +++++++++++
 2 files changed, 12 insertions(+)

diff --git a/mail/pear-Mail_mimeDecode/Makefile b/mail/pear-Mail_mimeDecode/Makefile
index 6a78c14199f9..e656d76cd925 100644
--- a/mail/pear-Mail_mimeDecode/Makefile
+++ b/mail/pear-Mail_mimeDecode/Makefile
@@ -2,6 +2,7 @@
 
 PORTNAME=	Mail_mimeDecode
 PORTVERSION=	1.5.6
+PORTREVISION=	1
 CATEGORIES=	mail www pear
 
 MAINTAINER=	dbaio@FreeBSD.org
diff --git a/mail/pear-Mail_mimeDecode/files/patch-Mail_mimeDecode.php b/mail/pear-Mail_mimeDecode/files/patch-Mail_mimeDecode.php
new file mode 100644
index 000000000000..47eee5aa76bb
--- /dev/null
+++ b/mail/pear-Mail_mimeDecode/files/patch-Mail_mimeDecode.php
@@ -0,0 +1,11 @@
+--- Mail/mimeDecode.php.orig	2016-08-29 03:04:25 UTC
++++ Mail/mimeDecode.php
+@@ -834,7 +834,7 @@ class Mail_mimeDecode extends PEAR
+ 
+         // Replace encoded characters
+ 		 
+-        $cb = create_function('$matches',  ' return chr(hexdec($matches[0]));');
++        $cb = function(array $matches)  { return chr(hexdec($matches[0])); };
+          
+         $input = preg_replace_callback( '/=([a-f0-9]{2})/i', $cb, $input);
+ 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202206180406.25I46jSS010682>