php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #47552 Return Type Description of preg_replace_callback does not mention NULL
Submitted: 2009-03-03 18:07 UTC Modified: 2009-11-19 11:54 UTC
From: artnorm at gmail dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: Win32
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: artnorm at gmail dot com
New email:
PHP Version: OS:

 

 [2009-03-03 18:07 UTC] artnorm at gmail dot com
Description:
------------
Bug #41788 preg_replace_callback returns NULL instead of input or error 

This Report already named the circumstances. Although it is NOT A BUG, the description in the documentation is not complete.

The return of the NULL value (and PHP Skalar-Type) is not mentioned, only String and Array are mentioned.

Please add the NULL return case as well in the documentation. Thanks.






Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-11-19 11:54 UTC] vrana@php.net
Already documented by felipe.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Jun 24 20:00:01 2026 UTC