xuetaohe / minify

Automatically exported from code.google.com/p/minify
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Minify_HTML fails on long strings in #264

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Minify commit/version:
PHP version: 5.2.6

What steps will reproduce the problem?
1. Using Minify_HTML try to compress attached compressing_ok.html & 
compressing_fails.html
2. See that compressing_fails.html minimizes to empty string
3. See difference between compressing_ok.html & compressing_fails.html

Expected output:

Original data

Actual output:

In compressing_ok.html - original data
In compressing_fails.html - empty string

Original issue reported on code.google.com by barbushin on 9 Jun 2012 at 2:31

Attachments:

GoogleCodeExporter commented 9 years ago
I found that this bug can be fixed by <?php ini_set('pcre.backtrack_limit', 
999999999) see http://www.php.net/manual/en/pcre.configuration.php.

May be you should add this option to Minify_HTML configuration.
Cheers!

Original comment by barbushin on 14 Jun 2012 at 10:16