From a51d08efe9c16c49f0a23b9044457945e73681e3 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Mon, 9 Oct 2006 18:55:57 +0200 Subject: lower chunksize in wordblock #938 There were recent reports of exceeded patternsize in the wordblock function when used with PHP5 darcs-hash:20061009165557-7ad00-f35d44da296caf6fd85431520d600033402d9b2f.gz --- inc/common.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'inc') diff --git a/inc/common.php b/inc/common.php index 845ca3634..a477f26a1 100644 --- a/inc/common.php +++ b/inc/common.php @@ -437,9 +437,9 @@ function checkwordblock(){ //this is very bad performancewise and may even be too high still $chunksize = 40; }else{ - //read file in chunks of 600 - this should work around the + //read file in chunks of 200 - this should work around the //MAX_PATTERN_SIZE in modern PCRE - $chunksize = 400; + $chunksize = 200; } while($blocks = array_splice($wordblocks,0,$chunksize)){ $re = array(); -- cgit v1.2.3