php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #35356 docs for preg_replace_callback do not document the limit and count parameters
Submitted: 2005-11-23 23:16 UTC Modified: 2006-04-03 17:10 UTC
From: mpb dot mail at gmail dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
 [2005-11-23 23:16 UTC] mpb dot mail at gmail dot com
Description:
------------
On this page:

http://us3.php.net/manual/en/function.preg-replace-callback.php

The "limit" and "count" parameters are listed, but not documented.  I think they should be documented, even though I personally can guess what they do.

The documentation should cover:

What does "limit" do?
What does "count" do?
What is the default limit if no limit is specified?
How do you specify no limit?

Thanks!


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-04-01 16:49 UTC] gavinfo@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

The description implies (well enough IMHO) that the parameters 
are the same as for preg_replace, except that a callback 
should be used in place of the replacement parameter.
 [2006-04-01 23:09 UTC] sean@php.net
Yes, this is described in preg_replace, but it should also be on the preg_replace_callback page.

S

 [2006-04-03 17:10 UTC] vrana@php.net
It's not only limit and count, also array() syntax of $pattern and $subject should be mentioned.

"See preg_replace() for description of other parameters."

 [2006-04-03 17:10 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.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 06 19:01:36 2025 UTC