Skip to content

Commit

Permalink
Fixed zetacomponents#61: create_function() is deprecated in PHP 7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
derickr committed Nov 29, 2017
1 parent 703d4fa commit 5205b2c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions ChangeLog
@@ -1,3 +1,9 @@
1.8.4 - [RELEASEDATE]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

- Fixed #61: create_function() is deprecated in PHP 7.2. (Derick Rethans)


1.8.3 - Saturday 18 November 2017
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Expand Down
5 changes: 4 additions & 1 deletion src/tools.php
Expand Up @@ -585,7 +585,10 @@ public static function mimeDecode( $text, $charset = 'utf-8' )
// Try to fix lower case hex digits
$text = preg_replace_callback(
'/=(([a-f][a-f0-9])|([a-f0-9][a-f]))/',
create_function( '$matches', 'return strtoupper($matches[0]);' ),
function( $matches )
{
return strtoupper( $matches[0] );
},
$origtext
);
$text = @iconv_mime_decode( $text, 0, $charset );
Expand Down

0 comments on commit 5205b2c

Please sign in to comment.