[pmwiki-users] php 5.2.1 problem (serious)
Henrik
henrik.bechmann at sympatico.ca
Mon Mar 19 07:27:37 CDT 2007
It looks like preg_replace() is broken for long strings in PHP 5.2.1.
Consistent with what I've seen, and I see mention of it in the "chatter".
I'll have to create a demo, and make sure the PHP folks have it on their
active bug list. (later this week -- going out of town for a few days).
Arghh.
- Henrik
Henrik wrote:
> On the page that renders: Max memory used 2598056
>
> On the page that doesn't render: Max memory used 2962672
>
> (my local environment)
>
> Way under the max...
>
> Patrick R. Michaud wrote:
>
>> On Sun, Mar 18, 2007 at 05:58:47PM -0500, Patrick R. Michaud wrote:
>>
>>
>>> Weird. I notice that your PHP environment is running with memory limits enabled
>>> (of 64MB) -- so perhaps PmWiki is hitting the memory limit. This doesn't seem
>>> likely, though, as 64MB is a huge amount of memory.
>>>
>>> FWIW, the most I've ever seen a page require on pmwiki.org is 24MB.
>>>
>>>
>> Here's an interesting experiment...
>>
>> Add the following to your local/config.php:
>>
>> function PeakUsage($pagename) {
>> return 'Max memory used ' . memory_get_peak_usage();
>> }
>> $HTMLFooterFmt['memlimit'] = 'function:PeakUsage';
>>
>> Then, run one of the pages that is large but actually renders correctly,
>> and tell me what value appears at the bottom of the page. That will give
>> us an idea of whether your site is getting close to PHP's memory limits,
>> and if this is somehow the problem.
>>
>> (I think you'll also need to add a <!--HTMLFooter--> directive
>> to your skin's template -- add it just before the closing </body> tag.)
>>
>> Pm
>>
>>
>>
>>
>
>
--
Henrik Bechmann
www.bechmann.ca
Webmaster, www.dufferinpark.ca
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20070319/e2c3b778/attachment-0001.html
More information about the pmwiki-users
mailing list