note 110453 deleted from function.preg-last-error by danbrown
| From: | danbrown@php.net | Date: | Thu, 06 Dec 2012 14:31:13 +0000 |
| Subject: | note 110453 deleted from function.preg-last-error by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-192339@lists.php.net to get a copy of this message | ||
Note Submitter: kroc at camendesign dot com
----
Just be aware that in PHP<5.3.7, the backtrace limit might be quite low (100k) and you may find
your
preg_replace returning a blank string.
You can raise the backtrace limit to resolve this:
<?php
ini_set('pcre.backtrack_limit', 1000000);
?>
Source: http://www.kavoir.com/2009/12/php-regular-expression-matching-input-subject-string-length-limit.html