#49685 [Opn->Csd]: Docs: What does preg_replace_callback() do on error?
| From: | fa@php.net | Date: | Fri, 02 Oct 2009 20:31:45 +0000 |
| Subject: | #49685 [Opn->Csd]: Docs: What does preg_replace_callback() do on error? | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-2870@lists.php.net to get a copy of this message | ||
ID: 49685
Updated by: fa@php.net
Reported By: malvineous at shikadi dot net
-Status: Open
+Status: Closed
Bug Type: Documentation problem
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.
Previous Comments:
------------------------------------------------------------------------
[2009-10-02 20:31:22] svn@php.net
Automatic comment from SVN on behalf of fa
Revision: http://svn.php.net/viewvc/?view=revision&revision=289097
Log: fix #49685 - returns NULL on errors
------------------------------------------------------------------------
[2009-09-27 09:37:56] malvineous at shikadi dot net
Description:
------------
The manual page for preg_replace_callback() explains the return values
but it doesn't say what will happen on error, e.g. bad regex or
unsupported modifier. Will it return null? Or false? Or something
else?
Reproduce code:
---------------
---
From manual page: function.preg-replace-callback#Return Values
---
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=49685&edit=1