-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev-php/PEAR-Mail_mimeDecode: add patch for PHP8 compatibility.
Closes: https://bugs.gentoo.org/833075 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Jaco Kroon <jaco@uls.co.za>
- Loading branch information
Showing
2 changed files
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
dev-php/PEAR-Mail_mimeDecode/files/PEAR-Mail_mimeDecode-1.5.6-r3-php8_compat.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff -bru a/Mail/mimeDecode.php b/Mail/mimeDecode.php | ||
--- a/Mail/mimeDecode.php 2016-08-29 05:04:25.000000000 +0200 | ||
+++ b/Mail/mimeDecode.php 2022-02-10 12:25:54.140741592 +0200 | ||
@@ -834,7 +834,7 @@ | ||
|
||
// Replace encoded characters | ||
|
||
- $cb = create_function('$matches', ' return chr(hexdec($matches[0]));'); | ||
+ $cb = function($matches) { return chr(hexdec($matches[0])); }; | ||
|
||
$input = preg_replace_callback( '/=([a-f0-9]{2})/i', $cb, $input); | ||
|