php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #75401 mb-ereg-replace default options "r" and "s" not documented anywhere
Submitted: 2017-10-17 20:19 UTC Modified: 2018-01-29 22:51 UTC
From: php-bug at webattractive dot de Assigned: vrana (profile)
Status: Closed Package: mbstring related
PHP Version: Irrelevant OS: any
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: php-bug at webattractive dot de
New email:
PHP Version: OS:

 

 [2017-10-17 20:19 UTC] php-bug at webattractive dot de
Description:
------------
---
From manual page: http://www.php.net/function.mb-ereg-replace
---

The fourth (optional) parameter "option" is shown with a default value of "msr"

In the parameter description section the options e,i,m,p and x are listed, but the r option is not explained.

The documentation for all other mb_ereg_* or mb_eregi_* functions also omits the r option, states to look in the description of mb_ereg_replace or has no explanation of the options at all.

The non multibyte versions of ereg_* or preg_* don't have an option parameter and the PCRE pattern modifier documntation also doesn't list an r option.

Websearches didn't help either.

Expected result:
----------------
An explanation of an option that is set by default

Actual result:
--------------
no clue what the r option is good for

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-10-17 21:01 UTC] php-bug at webattractive dot de
-Summary: mb-ereg-replace default option "r" not documented anywhere +Summary: mb-ereg-replace default options "r" and "s" not documented anywhere
 [2017-10-17 21:01 UTC] php-bug at webattractive dot de
Nothing in the Changelog. It only mentions the deprecation of the e modifier.
 [2017-10-17 21:22 UTC] cmb@php.net
-Package: Documentation problem +Package: mbstring related
 [2017-10-17 21:22 UTC] cmb@php.net
All MB regex options are explained on the mb_regex_set_options() man page[1].
This should probably be linked from the the other MB regex functions.

[1] <http://php.net/manual/en/function.mb-regex-set-options.php>
 [2018-01-29 22:51 UTC] vrana@php.net
Automatic comment from SVN on behalf of vrana
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=344083
Log: Link mb_regex_set_options (bug #75401)
 [2018-01-29 22:51 UTC] vrana@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: vrana
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 10:01:28 2024 UTC