php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #40272 Wrong info in preg_match_all documentation
Submitted: 2007-01-29 11:46 UTC Modified: 2007-02-02 02:44 UTC
From: carlmonte_ at hotmail dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: Ubuntu 6.06.1
Private report: No CVE-ID: None
 [2007-01-29 11:46 UTC] carlmonte_ at hotmail dot com
Description:
------------
Documentation for preg_match_all when called using flag PREG_OFFSET_CAPTURE says "Note that this changes the return value in an array ...", which changes is the $matches parameter.

That is a misundertanding doc, because I report it.

Reproduce code:
---------------
Note that this changes the return value in an array ...

Expected result:
----------------
Note that this changes the $matches parameter in an array ...


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-02-02 02:44 UTC] didou@php.net
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.


 [2020-02-07 06:10 UTC] phpdocbot@php.net
Automatic comment on behalf of didou
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=e9101363ed268dfcdcf08568ec3f5df241b9abfd
Log: Fix #40272: affects the matches parameter, not the returned value
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Aug 04 12:00:03 2025 UTC