I just upgraded from 1.2 stable to 1.3.10. PHP now
crashes consistently while PhpWiki tries to do a virgin
DB setup from pgsrc.
Specifically, the file "OldTextFormattingRules" has a
chunk of text that apparently is too long for
preg_match to handle with the complicated pattern begin
You can recreate the problem (on my machine at least)
simply by running this code below on its own, which
crashes the same way (and uses the same pattern):
-- Sample Begin --
$pat = "/\A((?:.|\n)?)(^(?:[ \t]+\S(?:.\s\n[ \t]+\S)|".
$subj = str_repeat("123456789 ", 50);
-- Sample End --
This maybe is a PCRE bug. See LIMITATIONS section of:
http://www.pcre.org/pcre.txt . Or it could be a
malformed search pattern (as generated in
stdlib.php:ConvertOldMarkup()), but I'm not great at
debugging other people's regexps.
Either way, it's preventing me from using PhpWiki at
all (and took me hours to figure out what was even
crashing), and it would be great if somebody with more
knowledge could dig into this and either fix it or
recommend a workaround to get up and running on 1.3.
My system is Apache2 on Win2k. I upgraded from PHP
4.3.0 to newest 4.3.8, but no difference.
Log in to post a comment.