[pmwiki-users] php 5.2.1 problem (serious)

Patrick R. Michaud pmichaud at pobox.com
Mon Mar 19 10:20:13 CDT 2007


On Mon, Mar 19, 2007 at 10:43:57AM -0400, Henrik wrote:
> More info:
> 
> If I turn off the group header of the large page (the group header 
> contains (:if:) directives to be parsed), then the page renders.
> 
> So I'm thinking there's something about (:if:) directive processing 
> (possibly internal preg_replace match subsets) that causes preg_replace 
> to fail.

Aha!  There may be another solution here, then... if you can, try
upgrading to the latest 2.2.0-beta version of PmWiki.  It changes the
parsing of the (:if:) directive a fair bit, and I think it's very
likely the new formulation would avoid the long string problem with
preg_replace in 5.2.1.

Or, if it turns out you just cannot upgrade into the 2.2.0-beta
series for some reason, I could see about backporting the (:if:)
code into 2.1.x, or at least providing a patch.

Pm




More information about the pmwiki-users mailing list