php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #40627 Unfixed earlier bug regarding preg_replace size limits?
Submitted: 2007-02-25 08:10 UTC Modified: 2007-03-23 15:46 UTC
From: brettz9 at yahoo dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: All
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: brettz9 at yahoo dot com
New email:
PHP Version: OS:

 

 [2007-02-25 08:10 UTC] 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-03-23 15:46 UTC] vrana@php.net
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."
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 07 01:01:30 2024 UTC