php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #71237 many functions are not marked as available in PHP7
Submitted: 2015-12-29 15:56 UTC Modified: 2016-01-06 19:17 UTC
From: php at mlemoine dot name Assigned: tpunt (profile)
Status: Closed Package: Documentation problem
PHP Version: 7.0.1 OS: Irrelevant
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: php at mlemoine dot name
New email:
PHP Version: OS:

 

 [2015-12-29 15:56 UTC] php at mlemoine dot name
Description:
------------
preg_replace_callback is not marked as available in PHP7 although it is:

https://3v4l.org/GDu3c

---
From manual page: http://www.php.net/function.preg-replace-callback
---



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-12-29 21:01 UTC] requinix@php.net
-Summary: new does not evaluate arguments if class has no constructor +Summary: preg_replace_callback is not marked as available in PHP7 -Package: Documentation problem +Package: PCRE related
 [2015-12-29 21:01 UTC] requinix@php.net
Other PCRE functions too, and probably more than that. Simply "PHP >= 4.0.5" may be the easiest way to address it - I think I've seen that style used elsewhere.
 [2016-01-03 13:37 UTC] cmb@php.net
> Other PCRE functions too, and probably more than that.

It seems to me that only few functions (such as the filesystem
functions) are marked as available with PHP 7.

> Simply "PHP >= 4.0.5" may be the easiest way to address it - […]

Either way, all 215 en/reference/*/versions.xml files would have
to be reviewed.
 [2016-01-03 13:56 UTC] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=338400
Log: partially fixed bug #71237: preg_replace_callback is not marked as available in PHP7
 [2016-01-03 13:57 UTC] cmb@php.net
-Summary: preg_replace_callback is not marked as available in PHP7 +Summary: many functions are not marked as available in PHP7 -Package: PCRE related +Package: Documentation problem
 [2016-01-06 19:17 UTC] tpunt@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: tpunt
 [2016-01-06 19:17 UTC] tpunt@php.net
I believe this has been resolved with commit: https://svn.php.net/viewvc?view=revision&revision=338406
 [2020-02-07 06:07 UTC] phpdocbot@php.net
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=717ac3060f6eb50f522efa156fadb9123f77bc82
Log: partially fixed bug #71237: preg_replace_callback is not marked as available in PHP7
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 15 08:01:31 2025 UTC