summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2006-10-09 18:55:57 +0200
committerAndreas Gohr <andi@splitbrain.org>2006-10-09 18:55:57 +0200
commita51d08efe9c16c49f0a23b9044457945e73681e3 (patch)
treec1652ac26cc23cc4aad596d33d7b963f7a32e10d /inc
parentd76dea32dcf0f404d1019876ff4ac8d2ed89de7c (diff)
downloadrpg-a51d08efe9c16c49f0a23b9044457945e73681e3.tar.gz
rpg-a51d08efe9c16c49f0a23b9044457945e73681e3.tar.bz2
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
Diffstat (limited to 'inc')
-rw-r--r--inc/common.php4
1 files changed, 2 insertions, 2 deletions
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();