Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.5.6

Bug #20027 deprecated "/e" preg_replace parameter in function _quotedPrintableDecode
Submitted: 2013-08-02 09:54 UTC
From: drmad Assigned: alan_k
Status: Closed Package: Mail_mimeDecode (version 1.5.5)
PHP Version: 5.5.1 OS: Xubuntu Linux 12.10
Roadmaps: (Not assigned)    
Subscription  


 [2013-08-02 09:54 UTC] drmad (Oliver Etchebarne)
Description: ------------ Function "_quotedPrintableDecode" relies on deprecated "/e" parameter for preg_replace, generating a warning on php 5.5.x Test script: --------------- <?php require 'Mail/mimeDecode.php'; $m = new Mail_mimeDecode ( file_get_contents ( 'email-with-quoted-body.eml' ) ); $m -> decode ([ 'include_bodies' => true, 'decode_bodies' => true, 'decode_headers' => true, ]); Expected result: ---------------- (Nothing. The test script should run quietly) Actual result: -------------- PHP Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /opt/php/lib/php/Mail/mimeDecode.php on line 762 Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /opt/php/lib/php/Mail/mimeDecode.php on line 762

Comments

 [2013-08-02 10:05 UTC] drmad (Oliver Etchebarne)
 [2013-08-05 09:25 UTC] alan_k (Alan Knowles)
-Status: Open +Status: Closed -Assigned To: +Assigned To: alan_k
This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better. Thanks Regards Alan