[pmwiki-users] preg_replace issue for php 5.6

Jean-Pierre Chrétien jeanpierre.chretien at free.fr
Thu Aug 6 10:30:54 CDT 2015


Petko Yotov <5ko <at> 5ko.fr> writes:

> Here are the patterns that need fixing in that recipe, with the new 
> PHP5.5 compatible patterns:
> 
> //'#\[([= <at> ]).*?\1\]#es' => "Keep(stripslashes('\$0'), 'H')",
>    '#\[([= <at> ]).*?\1\]#s' => PCCF("return Keep(\$m[0], 'H');"),
> 
[...]
> 
> //"#$KeepToken(\d.*?H)$KeepToken#e" => "\$GLOBALS['KPV']['$1']"
>    "#$KeepToken(\d.*?H)$KeepToken#" => PCCF("return 
> \$GLOBALS['KPV'][\$m[1]];")
> 
> The above should fix the recipe

Thanks for being so quickly responsive.
I applied the recipe, and it works.

I send you a patch by separate mail if you intend to update cookbook recipes
on the pmwiki site.

-- 
Regards
Jean-Pierre










More information about the pmwiki-users mailing list