PHP error

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

/home2/kimyaor1/public_html/protected/extensions/EMpdf/includes/functions.php(66)

54 
55 function PreparePreText($text,$ff='//FF//') {
56     // mPDF 5.0.053
57     $text = htmlspecialchars($text);
58     if ($ff) { $text = str_replace($ff,'</pre><formfeed /><pre>',$text); }
59     return ('<pre>'.$text.'</pre>');
60 }
61 
62 if(!function_exists('strcode2utf')){ 
63   function strcode2utf($str,$lo=true) {
64     //converts all the &#nnn; and &#xhhh; in a string to Unicode
65     if ($lo) { $lo = 1; } else { $lo = 0; }
66     $str = preg_replace('/\&\#([0-9]+)\;/me', "code2utf('\\1',{$lo})",$str);
67     $str = preg_replace('/\&\#x([0-9a-fA-F]+)\;/me', "codeHex2utf('\\1',{$lo})",$str);
68     return $str;
69   }
70 }
71 
72 if(!function_exists('code2utf')){ 
73   function code2utf($num,$lo=true){
74     //Returns the utf string corresponding to the unicode value
75     //added notes - http://uk.php.net/utf8_encode
76     if ($num<128) {
77         if ($lo) return chr($num);
78         else return '&#'.$num.';';    // i.e. no change

Stack Trace

#0
+
 /home2/kimyaor1/public_html/protected/extensions/EMpdf/includes/functions.php(66): preg_replace("/\&\#([0-9]+)\;/me", "code2utf('\1',0)", "<!DOCTYPE html> <html lang="en"> <!--<![endif]--> <head> <m...")
61 
62 if(!function_exists('strcode2utf')){ 
63   function strcode2utf($str,$lo=true) {
64     //converts all the &#nnn; and &#xhhh; in a string to Unicode
65     if ($lo) { $lo = 1; } else { $lo = 0; }
66     $str = preg_replace('/\&\#([0-9]+)\;/me', "code2utf('\\1',{$lo})",$str);
67     $str = preg_replace('/\&\#x([0-9a-fA-F]+)\;/me', "codeHex2utf('\\1',{$lo})",$str);
68     return $str;
69   }
70 }
71 
#1
+
 /home2/kimyaor1/public_html/protected/extensions/EMpdf/mpdf.php(30886): strcode2utf("<!DOCTYPE html> <html lang="en"> <!--<![endif]--> <head> <m...", false)
30881     // Leaves in particular &lt; to distinguish from tag marker
30882     $html = $this->SubstituteHiEntities($html);
30883 
30884     // converts all &#nnn; or &#xHHH; to UTF-8 multibyte
30885     // If $lo==true then includes ASCII < 128
30886     $html = strcode2utf($html,$lo);
30887     return ($html);
30888 }
30889 
30890 function purify_utf8_text($txt) {
30891     // For TEXT
#2
+
 /home2/kimyaor1/public_html/protected/extensions/EMpdf/mpdf.php(12343): mPDF->purify_utf8("<!DOCTYPE html> <html lang="en"> <!--<![endif]--> <head> ...", false)
12338             $success = iconv($this->charset_in,'UTF-8//TRANSLIT',$html); 
12339             if ($success) { $html = $success; }
12340         }
12341     }
12342 
12343     $html = $this->purify_utf8($html,false);
12344     if ($init) {
12345         $this->blklvl = 0;
12346         $this->lastblocklevelchange = 0;
12347         $this->blk = array();
12348         $this->initialiseBlock($this->blk[0]);
2024-03-29 16:47:34 Apache Yii Framework/1.1.10