note 94084 added to function.preg-replace
| From: | bert at osu1 dot php dot net | Date: | Thu, 15 Oct 2009 15:46:33 +0000 |
| Subject: | note 94084 added to function.preg-replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-161771@lists.php.net to get a copy of this message | ||
@natedubya, @michael
Most likely the issue in question is the pcre.backtrack-limit
I've run into the same problem and using ini_set("pcre.backtrack_limit",1000000) to
bump the limit up some resolved the problem.
Of course, preg_replace could fail for other reasons also. After calling preg_replace you should
check preg_last_error() for error codes.
----
Server IP: 208.69.120.35
Probable Submitter: 63.247.150.130
----
Manual Page -- http://www.php.net/manual/en/function.preg-replace.php
Edit -- https://master.php.net/note/edit/94084
Del: integrated -- https://master.php.net/note/delete/94084/integrated
Del: useless -- https://master.php.net/note/delete/94084/useless
Del: bad code -- https://master.php.net/note/delete/94084/bad+code
Del: spam -- https://master.php.net/note/delete/94084/spam
Del: non-english -- https://master.php.net/note/delete/94084/non-english
Del: in docs -- https://master.php.net/note/delete/94084/in+docs
Del: other reasons-- https://master.php.net/note/delete/94084
Reject -- https://master.php.net/note/reject/94084
Search -- https://master.php.net/manage/user-notes.php