note 93504 added to function.preg-match-all
| From: | royaltm75 at gmail dot com | Date: | Sun, 13 Sep 2009 21:44:00 +0000 |
| Subject: | note 93504 added to function.preg-match-all | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-160518@lists.php.net to get a copy of this message | ||
I have received complains, that my html2a() code (see below) doesn't work in some cases.
It is however not the problem with algorithm or procedure, but with PCRE recursive stack limits.
If you use recursive PCRE (?R) you should remember to increase those two ini settings:
ini_set('pcre.backtrack_limit', 10000000);
ini_set('pcre.recursion_limit', 10000000);
But be warned: (from php.ini)
;Please note that if you set this value to a high number you may consume all
;the available process stack and eventually crash PHP (due to reaching the
;stack size limit imposed by the Operating System).
I have written this example mainly to demonstrate the power of PCRE LANGUAGE, not the power of
it's implementation :)
But if you like it, use it, of course on your own risk.
----
Server IP: 194.24.174.37
Probable Submitter: 85.222.27.82
----
Manual Page -- http://www.php.net/manual/en/function.preg-match-all.php
Edit -- https://master.php.net/note/edit/93504
Del: integrated -- https://master.php.net/note/delete/93504/integrated
Del: useless -- https://master.php.net/note/delete/93504/useless
Del: bad code -- https://master.php.net/note/delete/93504/bad+code
Del: spam -- https://master.php.net/note/delete/93504/spam
Del: non-english -- https://master.php.net/note/delete/93504/non-english
Del: in docs -- https://master.php.net/note/delete/93504/in+docs
Del: other reasons-- https://master.php.net/note/delete/93504
Reject -- https://master.php.net/note/reject/93504
Search -- https://master.php.net/manage/user-notes.php