I'm using preg_match_all for very long pattern.
when run the code, i got this error :
Warning: preg_match_all(): Compilation failed: regular expression is too large at offset 707830
After searching, I got the solution, so I should increase value of pcre.backtrack_limit
and pcre.recursion_limit
in php.ini
But after I increase the value and restart my apache, it still got the same problem. My PHP verison is 5.3.8
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…