Index: head/mail/pecl-mailparse/files/patch-PHP-73-compatibility =================================================================== --- head/mail/pecl-mailparse/files/patch-PHP-73-compatibility (revision 496598) +++ head/mail/pecl-mailparse/files/patch-PHP-73-compatibility (nonexistent) @@ -1,80 +0,0 @@ -http://git.php.net/?p=pecl/mail/mailparse.git;a=patch;h=13c2c425e519b22660a03d566c35e76b3d4751dc -From 13c2c425e519b22660a03d566c35e76b3d4751dc Mon Sep 17 00:00:00 2001 -From: Jan-E -Date: Tue, 10 Jul 2018 17:42:24 +0200 -Subject: [PATCH] PHP 7.3 compatibility - ---- - mailparse.c | 13 +++++++++++++ - php_mailparse_mime.c | 9 +++++++++ - 2 files changed, 22 insertions(+) - -diff --git a/mailparse.c b/mailparse.c -index bf5be0f..f658d68 100644 ---- mailparse.c -+++ mailparse.c -@@ -984,12 +984,21 @@ PHP_FUNCTION(mailparse_stream_encode) - buf = emalloc(bufsize); - RETVAL_TRUE; - -+#if PHP_VERSION_ID >= 70300 -+ conv = mbfl_convert_filter_new(mbfl_no2encoding(mbfl_no_encoding_8bit), -+ mbfl_no2encoding(enc), -+ mailparse_stream_output, -+ mailparse_stream_flush, -+ deststream -+ ); -+#else - conv = mbfl_convert_filter_new(mbfl_no_encoding_8bit, - enc, - mailparse_stream_output, - mailparse_stream_flush, - deststream - ); -+#endif - - if (enc == mbfl_no_encoding_qprint) { - /* If the qp encoded section is going to be digitally signed, -@@ -1165,9 +1174,13 @@ PHP_FUNCTION(mailparse_msg_get_structure) - - mailparse_fetch_mimepart_resource(part, arg); - -+#if PHP_VERSION_ID >= 70300 -+ array_init(return_value); -+#else - if (array_init(return_value) == FAILURE) { - RETURN_FALSE; - } -+#endif - php_mimepart_enum_parts(part, &get_structure_callback, return_value); - } - /* }}} */ -diff --git a/php_mailparse_mime.c b/php_mailparse_mime.c -index b22eabb..8176c9d 100644 ---- php_mailparse_mime.c -+++ php_mailparse_mime.c -@@ -906,12 +906,21 @@ PHP_MAILPARSE_API void php_mimepart_decoder_prepare(php_mimepart *part, int do_d - if (from == mbfl_no_encoding_8bit || from == mbfl_no_encoding_7bit) { - part->extract_filter = NULL; - } else { -+#if PHP_VERSION_ID >= 70300 -+ part->extract_filter = mbfl_convert_filter_new( -+ mbfl_no2encoding(from), mbfl_no2encoding(mbfl_no_encoding_8bit), -+ filter_into_work_buffer, -+ NULL, -+ part -+ ); -+#else - part->extract_filter = mbfl_convert_filter_new( - from, mbfl_no_encoding_8bit, - filter_into_work_buffer, - NULL, - part - ); -+#endif - } - } - --- -2.1.4 - Property changes on: head/mail/pecl-mailparse/files/patch-PHP-73-compatibility ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/mail/pecl-mailparse/Makefile =================================================================== --- head/mail/pecl-mailparse/Makefile (revision 496598) +++ head/mail/pecl-mailparse/Makefile (revision 496599) @@ -1,17 +1,17 @@ # Created by: Thierry Thomas () # $FreeBSD$ PORTNAME= mailparse -PORTVERSION= 3.0.2 +PORTVERSION= 3.0.3 CATEGORIES= mail www MAINTAINER= dbaio@FreeBSD.org COMMENT= PECL extension to create and decode MIME messages LICENSE= PHP301 LICENSE_FILE= ${WRKSRC}/LICENSE USES= php:pecl USE_PHP= mbstring:build .include Index: head/mail/pecl-mailparse/distinfo =================================================================== --- head/mail/pecl-mailparse/distinfo (revision 496598) +++ head/mail/pecl-mailparse/distinfo (revision 496599) @@ -1,3 +1,3 @@ -TIMESTAMP = 1489866577 -SHA256 (PECL/mailparse-3.0.2.tgz) = d81a6f8a48e43fca1c0f0d6c90d666830c24d584a23a60add43062aaf221843b -SIZE (PECL/mailparse-3.0.2.tgz) = 38206 +TIMESTAMP = 1553291567 +SHA256 (PECL/mailparse-3.0.3.tgz) = bfaeae61342c147bcb66b9a90949722e04b65548e6a9d1eb4896aeb62409d302 +SIZE (PECL/mailparse-3.0.3.tgz) = 940370