Doc #63754 [Opn->Nab]: preg_match changelog missing entry when $matches became optional in 5.4.0
| From: | aharvey@php.net | Date: | Thu, 13 Dec 2012 03:38:55 +0000 |
| Subject: | Doc #63754 [Opn->Nab]: preg_match changelog missing entry when $matches became optional in 5.4.0 | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-9285@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=63754&edit=1
ID: 63754
Updated by: aharvey@php.net
Reported by: php dot net at web dot wnsr dot net
Summary: preg_match changelog missing entry when $matches
became optional in 5.4.0
-Status: Open
+Status: Not a bug
Type: Documentation Problem
Package: Documentation problem
Operating System: Irrelevant
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
It's always been optional in preg_match(); the changelog at http://php.net/preg_match_all already mentions that
$matches became optional in preg_match_all() in PHP 5.4.0.
Previous Comments:
------------------------------------------------------------------------
[2012-12-13 01:55:44] php dot net at web dot wnsr dot net
Description:
------------
---
From manual page: http://www.php.net/function.preg-match#refsect1-function.preg-
match-changelog
---
The function signature for preg_match indicates $matches (the third argument) is
optional. However, it was only made optional in PHP 5.4.0:
http://php.net/ChangeLog-5.php#5.4.0
""""
Improved preg extension
Changed third parameter of preg_match_all() to optional. #53238.
""""
The changelog for this function should reflect this, so that readers still using
versions earlier than PHP 5.4 will understand why they get errors if they
attempt to leave off the third argument.
Expected result:
----------------
I would expect the changelog for the preg_match function documentation to show
that the third argument was made optional in PHP 5.4.0.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=63754&edit=1