FAQ
Edit report at https://pear.php.net/bugs/bug.php?id=20027&edit=1

  ID: 20027
  Updated by: alan@roojs.com
  Reported By: oliver at x10 dot pe
  Summary: deprecated "/e" preg_replace parameter in function
                     _quotedPrintableDecode
-Status: Open
+Status: Closed
  Type: Bug
  Package: Mail_mimeDecode
  Operating System: Xubuntu Linux 12.10
  Package Version: 1.5.5
  PHP Version: 5.5.1
-Assigned To:
+Assigned To: alan_k
  Roadmap Versions:
  New Comment:

-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


Previous Comments:
------------------------------------------------------------------------

[2013-08-02 06:05:24] drmad

Added #patch
bug:20027;patch:set_preg_replace_callback;revision:1375419924;.

------------------------------------------------------------------------

[2013-08-02 05:54:24] drmad

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

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedAug 5, '13 at 3:20a
activeAug 5, '13 at 3:20a
posts1
users1
websitepear.php.net

1 user in discussion

Alan: 1 post

People

Translate

site design / logo © 2022 Grokbase