<![CDATA[ Phx and Parser limits - My Forums]]> https://forums.modx.com/thread/?thread=45375 <![CDATA[Re: Phx and Parser limits]]> https://forums.modx.com/thread/45375/phx-and-parser-limits?page=2#dis-post-262146
You can also set [tt]php_value pcre.backtrack_limit 16000000[/tt] in your .htaccess file in many cases, instead of modifying the code. It could affect more of the site if there are many bad regular expression call that should "time out" sooner.]]>
megab Aug 26, 2010, 10:38 AM https://forums.modx.com/thread/45375/phx-and-parser-limits?page=2#dis-post-262146
<![CDATA[Re: Phx and Parser limits]]> https://forums.modx.com/thread/45375/phx-and-parser-limits#dis-post-262145 ]]> mrhaw Jan 03, 2010, 03:22 PM https://forums.modx.com/thread/45375/phx-and-parser-limits#dis-post-262145 <![CDATA[Re: Phx and Parser limits]]> https://forums.modx.com/thread/45375/phx-and-parser-limits#dis-post-262144 coroico Nov 25, 2009, 10:31 AM https://forums.modx.com/thread/45375/phx-and-parser-limits#dis-post-262144 <![CDATA[Re: Phx and Parser limits]]> https://forums.modx.com/thread/45375/phx-and-parser-limits#dis-post-262143 Quote from: pixelchutes at Nov 24, 2009, 06:53 AM

Great find, coroico! Thank you for your input, PMS. This definitely helps clarify things for me on my end. Will try increasing the limit on some currently impacted sites and post-back with the results. cool

So awesome! This totally fixed any PHx limitation I was previously running into. By updating the PCRE backlimit configuration in the php.ini, all of my sites that were previously impacted have inherently been fixed. Plenty to be thankful for this Thanksgiving wink]]>
pixelchutes Nov 25, 2009, 10:14 AM https://forums.modx.com/thread/45375/phx-and-parser-limits#dis-post-262143
<![CDATA[Re: Phx and Parser limits]]> https://forums.modx.com/thread/45375/phx-and-parser-limits#dis-post-262142 ]]> pixelchutes Nov 24, 2009, 12:53 AM https://forums.modx.com/thread/45375/phx-and-parser-limits#dis-post-262142 <![CDATA[Re: Phx and Parser limits]]> https://forums.modx.com/thread/45375/phx-and-parser-limits#dis-post-262141 PaulSuckling Nov 23, 2009, 03:19 AM https://forums.modx.com/thread/45375/phx-and-parser-limits#dis-post-262141 <![CDATA[Re: Phx and Parser limits]]> https://forums.modx.com/thread/45375/phx-and-parser-limits#dis-post-262140
ini_set('pcre.backtrack_limit', '16000000');
Do you know the corresponding size allowed with this value ? If my assumptions are correct = 64 * 16000000 / 100000 / 1024 = 10 Mb !

With this value, you haven’t memory bottleneck during the script execution ?]]>
coroico Nov 23, 2009, 03:11 AM https://forums.modx.com/thread/45375/phx-and-parser-limits#dis-post-262140
<![CDATA[Re: Phx and Parser limits]]> https://forums.modx.com/thread/45375/phx-and-parser-limits#dis-post-262139
ini_set('pcre.backtrack_limit', '16000000');

within the code. This is approximately the maximum number of single byte characters that are allowed in the MODx content field. Although the number is very large I haven’t encountered any negative side-effects.]]>
PaulSuckling Nov 22, 2009, 05:08 PM https://forums.modx.com/thread/45375/phx-and-parser-limits#dis-post-262139
<![CDATA[Re: Phx and Parser limits]]> https://forums.modx.com/thread/45375/phx-and-parser-limits#dis-post-262138
Now we know whats happening behind the scenes.

Thanks]]>
zaigham Nov 19, 2009, 06:25 PM https://forums.modx.com/thread/45375/phx-and-parser-limits#dis-post-262138
<![CDATA[Re: Phx and Parser limits]]> https://forums.modx.com/thread/45375/phx-and-parser-limits#dis-post-262137
;PCRE library backtracking limit.
pcre.backtrack_limit=200000
With this value, now I could display 512 lignes instead of 256 wink

As one UTF-8 character is encoded on 2 bytes, the correct size limit with the default value of 100000 for the pcre.backtrack_limit is 256*128*2 = 64kb rather than 32kb.

About pcre.backtrack_limit : http://bugs.php.net/bug.php?id=40846]]>
coroico Nov 19, 2009, 05:59 PM https://forums.modx.com/thread/45375/phx-and-parser-limits#dis-post-262137