[pmwiki-users] preg_replace, how to circumwent?
john.rankin at affinity.co.nz
Tue Apr 22 17:25:51 CDT 2014
> I'll update the recipe! Thanks for spotting this one, which I missed. In
> other places, I have been changing these to use anonymous functions.
Fixed at http://www.pmwiki.org/wiki/Cookbook/WikiCalendar.
I'll also include the fix in the next release of the PublishPDF library.
>> Peter K.H. Gragert writes:
>>> 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
>>> on line 482
>>> What could be a general solution to this type of PHP problem
>> In this case, use something like:
>> $firstpara = PPRE("/\\[\\=(.*?)\\=\\]/s", 'Keep($m)', $firstpara);
>> For the general case see
>> (also applied here).
More information about the pmwiki-users