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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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: Mon Jun 15 21:00:02 2026 UTC