[pmwiki-users] preg_replace, how to circumwent?

Peter K.H. Gragert p.k.h.gragert at misc.utwente.nl
Tue Apr 22 04:20:33 CDT 2014


In wikilog.php online 482 one finds:

 

                            $firstpara =
preg_replace("/\\[\\=(.*?)\\=\\]/se",

                                "Keep(PSS('$1'))",$firstpara);

 

And the /e  gives this error message

 

Deprecated: preg_replace(): The /e modifier is deprecated, use
preg_replace_callback instead in D:\xampp\htdocs\Atolls\cookbook\wikilog.php
on line 482

 

What could be a general solution to this type of PHP problem



Greets

       Peter

 

Petko, your advice with respect to 
 date_default_timezone_set('Europe/Amsterdam');

Works, happy Peter ;-)

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20140422/2c1e88a4/attachment-0001.html>


More information about the pmwiki-users mailing list