From: Sébastien Le C. <sl...@ya...> - 2010-05-14 07:23:03
|
Hi, I have been looking into problems with some dumped archives which could not be imported back into phpwiki. After some investigation, I have isolated the problem to ParseMimeMultipart in ziplib.php; the preg_match was exiting too early. The regexp looks ok, but for big archives (whether it is a medium-size page with lots of revisions, or a huge file with a couple of revisions), preg_match seems to be failing. It turns out it looks like I'm hitting the pcre backtrack/recursion limit. Increasing the values of pcre.backtrack_limit and pcre.recursion_limit in php.ini as per http://ie.php.net/manual/en/pcre.configuration.php#ini.pcre.recursion-limit seems to do the trick, but I was wondering if anybody has hit this issue before? I have quite large archives to import, and I am not sure whether preg_match is able to cope with them, even with the increased values. Thanks, Sébastien. |