When I use yii-pdf-0.3.2.zip have error please help config
preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead
error page 096 please help me all friend
092 if(!function_exists(‘strcode2utf’)){
093 function strcode2utf($str,$lo=true) {
094 //converts all the &#nnn ; and &#xhhh ; in a string to Unicode
095 if ($lo) { $lo = 1; } else { $lo = 0; }
096 $str = preg_replace(’/\&\#([0-9]+)\;/me’, “code2utf(’\\1’,{$lo})”,$str);
097 $str = preg_replace(’/\&\#x ([0-9a-fA-F]+)\;/me’, “codeHex2utf(’\\1’,{$lo})”,$str);
098 return $str;
099 }
100 }
Keith
(Kburton)
September 3, 2014, 3:19pm
2
Try using a more recent version from the repository on GitHub. The problem might be fixed in V0.4.
I use yii-1.1.14.f0fee9 version.
After test all version Yii-Pdf it still error the same.
Bizley
(Bizley)
September 4, 2014, 7:33am
4
The lastest 5.7 version of MPDF still uses deprecated preg_replace modifier. Maybe it’s fixed in 6.0 but you have to check it first at http://www.mpdf1.com/mpdf/index.php and update your yii-pdf if so but without support of yii-pdf’s author it might not work.
After changed to new version is OK. Thank you very much.
+1 to Bizley. He will deserverd it.