#40627 [Opn->Csd]: Unfixed earlier bug regarding preg_replace size limits?
| From: | vrana@php.net | Date: | Fri, 23 Mar 2007 15:46:57 +0000 |
| Subject: | #40627 [Opn->Csd]: Unfixed earlier bug regarding preg_replace size limits? | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969375847@lists.php.net to get a copy of this message | ||
ID: 40627
Updated by: vrana@php.net
Reported By: brettz9 at yahoo dot com
-Status: Open
+Status: Closed
Bug Type: Documentation problem
Operating System: All
PHP Version: Irrelevant
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation
better.
"The maximum length of a subject string is the largest positive number
that an integer variable can hold. However, PCRE uses recursion to
handle subpatterns and indefinite repetition. This means that the
available stack space may limit the size of a subject string that can be
processed by certain patterns."
Previous Comments:
------------------------------------------------------------------------
[2007-02-25 08:10:36] brettz9 at yahoo dot com
Description:
------------
Hi,
Although the bug report at http://bugs.php.net/bug.php?id=25754 said
the documentation would be fixed (back in 2004), I didn't see any
mention on the preg_replace or preg_replace_callback pages of this bug.
thanks,
Brett
Reproduce code:
---------------
Try preg_replace or preg_replace_callback on a large file of code.
Expected result:
----------------
It replaces the text
Actual result:
--------------
In my case at least, the preg_replace_callback function returned
nothing back.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40627&edit=1