| Bug #42649 | preg_match_all doesn't capture more than 99998 bytes | ||||
|---|---|---|---|---|---|
| Submitted: | 13 Sep 2007 12:17am UTC | Modified: | 13 Sep 2007 7:48am UTC | ||
| From: | stronk7 at moodle dot org | Assigned to: | |||
| Status: | Bogus | Category: | PCRE related | ||
| Version: | 5.2.4 | OS: | potentially any | ||
| Votes: | 1 | Avg. Score: | 5.0 ± 0.0 | Reproduced: | 1 of 1 (100.0%) |
| Same Version: | 0 (0.0%) | Same OS: | 0 (0.0%) | ||
[13 Sep 2007 12:17am UTC] stronk7 at moodle dot org
[13 Sep 2007 12:44am UTC] stronk7 at moodle dot org
UHm...
It seems that, since 5.2.0 it's necessary to adjust the
"pcre.backtrack_limit' setting to allow more chars to be returned (in
ungreedy matches). So, something like:
ini_set('pcre.backtrack_limit', 20971520); /// 20 MB
will allow up to 20MB of text to be matched.
Radical change (without notices?) from previous versions...uhm.
Ciao :-)
[13 Sep 2007 7:48am UTC] jani@php.net
Expected behaviour. And it was a bug fix to prevent crashes / out of memory issues. Not bug -> bogus.
