|
PHP: 5.2.0-8+etch7
OS: Linux build 2.6.18-4-vserver-686 #1 SMP Thu May 10 01:37:59 UTC 2007 i686 ERROR, preg_match_all() has NOT been able to capture one text of 99999 bytes Bah!
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. So, I' would vote to add it to all branches ASAP, or the problem will be breaking a lot of things. Bah! Thanks to Penny and Matt! To have everything inter-linked, this is the bug i submitted to PHP:
I've added this to HEAD for a bit of testing before backporting to other branches.
PHP: 5.2.4
OS: Linux nahore 2.6.22.5-23-default #1 SMP 2007/09/18 05:23:45 UTC i686 ERROR, preg_match_all() has NOT been able to capture one text of 99999 bytes. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
PHP: 5.2.4
OS: Darwin mbp 8.10.1 Darwin Kernel Version 8.10.1: Wed May 23 16:33:00 PDT 2007; root:xnu-792.22.5~1/RELEASE_I386 i386
ERROR, preg_match_all() has NOT been able to capture one text of 99999 bytes.
PHP: 5.1.6
OS: Darwin mbp 8.10.1 Darwin Kernel Version 8.10.1: Wed May 23 16:33:00 PDT 2007; root:xnu-792.22.5~1/RELEASE_I386 i386
OK, preg_match_all() has been able to capture one text of 99999 bytes.
PHP: 4.3.10
OS: Darwin mbp 8.10.1 Darwin Kernel Version 8.10.1: Wed May 23 16:33:00 PDT 2007; root:xnu-792.22.5~1/RELEASE_I386 i386
OK, preg_match_all() has been able to capture one text of 99999 bytes.