summaryrefslogtreecommitdiff
path: root/inc/init.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2008-04-09 20:16:15 +0200
committerAndreas Gohr <andi@splitbrain.org>2008-04-09 20:16:15 +0200
commit6deb5405c94e1622dcf3ff1548c4d98fe6decda5 (patch)
tree15dc6520861bed7710598b7c033e27b4e89cb66f /inc/init.php
parent694edecda81a3cdf5e98bccfbde9fdfad85c223f (diff)
downloadrpg-6deb5405c94e1622dcf3ff1548c4d98fe6decda5.tar.gz
rpg-6deb5405c94e1622dcf3ff1548c4d98fe6decda5.tar.bz2
try to increase the PCRE backtrack limit
This should avoid problems with larger pages on newer PHP versions. See http://www.freelists.org/archives/dokuwiki/04-2008/msg00049.html darcs-hash:20080409181615-7ad00-de4f7a0602692b28e048d215c2e2b9657f96b81c.gz
Diffstat (limited to 'inc/init.php')
-rw-r--r--inc/init.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/inc/init.php b/inc/init.php
index d730ca76c..9563af296 100644
--- a/inc/init.php
+++ b/inc/init.php
@@ -90,6 +90,9 @@
// make sure global zlib does not interfere FS#1132
@ini_set('zlib.output_compression', 'off');
+ // increase PCRE backtrack limit
+ @ini_set('pcre.backtrack_limit', '20971520');
+
// enable gzip compression
if ($conf['gzip_output'] &&
!defined('DOKU_DISABLE_GZIP_OUTPUT') &&