[fixed] preg_replace(): The /e modifier is deprecated

Forum rules
Only administrators can post or move items here.
Post Reply
jce76350
Beta Tester
Beta Tester
Posts: 2032
Joined: Mon May 29, 2006 1:20 pm
Location: Rouen

[fixed] preg_replace(): The /e modifier is deprecated

Post by jce76350 »

Hi,

1- On step 9 install PHAR rev 145 and SVN 9788 PHP 5.5.18
Message : Deprecated: preg_replace(): The /e modifier is deprecated ..lib/phpmailer/class.phpmailer.php
see

Code: Select all

	Line 1909:         $encoded = preg_replace("/([^A-Za-z0-9!*+\/ -])/e", "'='.sprintf('%02X', ord('\\1'))", $encoded);
	Line 1912:         $encoded = preg_replace("/([\(\)\"])/e", "'='.sprintf('%02X', ord('\\1'))", $encoded);
And the class.phpmailer used on CMSms beta2 is the Version 5.2.1
so the last version PHPMailer 5.2.8

2- Other Deprecated: preg_replace()
html_entity_decode_utf8.php //replace numeric entities

Code: Select all

	Line 38: 	$string = preg_replace('~&#x0*([0-9a-f]+);~ei', '_code2utf8(hexdec("\\1"))', $string);
	Line 39: 	$string = preg_replace('~&#0*([0-9]+);~e', '_code2utf8(\\1)', $string);
Jean-Claude Etiemble
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Deprecated: preg_replace(): The /e modifier is deprecate

Post by calguy1000 »

Fixed in svn.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
jce76350
Beta Tester
Beta Tester
Posts: 2032
Joined: Mon May 29, 2006 1:20 pm
Location: Rouen

Re: [fixed] preg_replace(): The /e modifier is deprecated

Post by jce76350 »

Ok solved in rev 9791 for PHPMailer 5.2.8

But error
Catchable fatal error: Object of class Closure could not be converted to string in \lib\html_entity_decode_utf8.php on line 42
Jean-Claude Etiemble
jce76350
Beta Tester
Beta Tester
Posts: 2032
Joined: Mon May 29, 2006 1:20 pm
Location: Rouen

Re: [open] preg_replace(): The /e modifier is deprecated

Post by jce76350 »

Not solved in rev 9792 (html_entity_decode_utf8.php)

check in admin/listusertags.php?_sk_=xxxx

message :
Warning: preg_replace_callback(): Modifier /e cannot be used with replacement callback in ...\lib\html_entity_decode_utf8.php on line 42

Warning: preg_replace_callback(): Modifier /e cannot be used with replacement callback in ...\lib\html_entity_decode_utf8.php on line 46
Jean-Claude Etiemble
jce76350
Beta Tester
Beta Tester
Posts: 2032
Joined: Mon May 29, 2006 1:20 pm
Location: Rouen

Re: [open] preg_replace(): The /e modifier is deprecated

Post by jce76350 »

Yes solved in rev 9793
Jean-Claude Etiemble
Post Reply

Return to “Closed Issues”