PHP error

preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead

/home/mdcs/public_html/limesurvey/application/third_party/phpmailer/class.phpmailer.php(1726)

1714      * @link http://tools.ietf.org/html/rfc2047
1715      * @param string $str the text to encode
1716      * @param string $position Where the text is going to be used, see the RFC for what that means
1717      * @access public
1718      * @return string
1719      */
1720     public function EncodeQ ($str, $position = 'text') {
1721         // There should not be any EOL in the string
1722         $encoded = preg_replace('/[\r\n]*/', '', $str);
1723 
1724         switch (strtolower($position)) {
1725             case 'phrase':
1726                 $encoded = preg_replace("/([^A-Za-z0-9!*+\/ -])/e", "'='.sprintf('%02X', ord('\\1'))", $encoded);
1727                 break;
1728             case 'comment':
1729                 $encoded = preg_replace("/([\(\)\"])/e", "'='.sprintf('%02X', ord('\\1'))", $encoded);
1730             case 'text':
1731             default:
1732                 // Replace every high ascii, control =, ? and _ characters
1733                 //TODO using /e (equivalent to eval()) is probably not a good idea
1734                 $encoded = preg_replace('/([\000-\011\013\014\016-\037\075\077\137\177-\377])/e',
1735               "'='.sprintf('%02X', ord('\\1'))", $encoded);
1736                 break;
1737         }
1738 

Stack Trace

#0
+
 /home/mdcs/public_html/limesurvey/application/third_party/phpmailer/class.phpmailer.php(1726): preg_replace("/([^A-Za-z0-9!*+\/ -])/e", "'='.sprintf('%02X', ord('\1'))", "Michael Jiménez")
1721         // There should not be any EOL in the string
1722         $encoded = preg_replace('/[\r\n]*/', '', $str);
1723 
1724         switch (strtolower($position)) {
1725             case 'phrase':
1726                 $encoded = preg_replace("/([^A-Za-z0-9!*+\/ -])/e", "'='.sprintf('%02X', ord('\\1'))", $encoded);
1727                 break;
1728             case 'comment':
1729                 $encoded = preg_replace("/([\(\)\"])/e", "'='.sprintf('%02X', ord('\\1'))", $encoded);
1730             case 'text':
1731             default:
#1
+
 /home/mdcs/public_html/limesurvey/application/third_party/phpmailer/class.phpmailer.php(1565): PHPMailer->EncodeQ("Michael Jiménez", "phrase")
1560                 $maxlen -= $maxlen % 4;
1561                 $encoded = trim(chunk_split($encoded, $maxlen, "\n"));
1562             }
1563         } else {
1564             $encoding = 'Q';
1565             $encoded = $this->EncodeQ($str, $position);
1566             $encoded = $this->WrapText($encoded, $maxlen, true);
1567             $encoded = str_replace('='.$this->LE, "\n", trim($encoded));
1568         }
1569 
1570         $encoded = preg_replace('/^(.*)$/m', " =?".$this->CharSet."?$encoding?\\1?=", $encoded);
#2
+
 /home/mdcs/public_html/limesurvey/application/third_party/phpmailer/class.phpmailer.php(917): PHPMailer->EncodeHeader("Michael Jiménez", "phrase")
912      */
913     public function AddrFormat($addr) {
914         if (empty($addr[1])) {
915             return $this->SecureHeader($addr[0]);
916         } else {
917             return $this->EncodeHeader($this->SecureHeader($addr[1]), 'phrase') . " <" . $this->SecureHeader($addr[0]) . ">";
918         }
919     }
920 
921     /**
922      * Wraps message for use with mailers that do not
2014-07-22 20:18:22 Apache/2.2.26 (Unix) mod_ssl/2.2.26 OpenSSL/1.0.1e-fips DAV/2 mod_bwlimited/1.4 Yii Framework/1.1.14