nlopess         Thu Jul  6 19:49:32 2006 UTC

  Modified files:              
    /phpdoc/htmlhelp    filter_files.php 
  Log:
  fix the problem with PHP >= 5.1. So the problem is that one of the regexes 
backtracks too much (thousands of characters) and the default limit wasn't 
enough.
  # Thanks to Richard Quadling for his help
  
http://cvs.php.net/viewvc.cgi/phpdoc/htmlhelp/filter_files.php?r1=1.17&r2=1.18&diff_format=u
Index: phpdoc/htmlhelp/filter_files.php
diff -u phpdoc/htmlhelp/filter_files.php:1.17 
phpdoc/htmlhelp/filter_files.php:1.18
--- phpdoc/htmlhelp/filter_files.php:1.17       Fri Jul  1 22:27:04 2005
+++ phpdoc/htmlhelp/filter_files.php    Thu Jul  6 19:49:32 2006
@@ -1,4 +1,4 @@
-<?php // $Id: filter_files.php,v 1.17 2005/07/01 22:27:04 techtonik Exp $
+<?php // $Id: filter_files.php,v 1.18 2006/07/06 19:49:32 nlopess Exp $
 
 /* 
    This file is part of the Windows Compiled HTML Help
@@ -13,6 +13,9 @@
     die("This script is called from make_chm.php to filter output from XSL 
DocBook templates");
 }
 
+// make sure our regexes work under PHP >= 5.1
+ini_set('pcre.backtrack_limit', PHP_INT_MAX);
+
 $counter = filterFiles();
 
 // Filter XSL generated files through some refine filters

Reply via email to