Doc #75401 [Opn]: mb-ereg-replace default options "r" and "s" not documented anywhere
Edit report at https://bugs.php.net/bug.php?id=75401&edit=1
ID: 75401
Updated by: cmb@php.net
Reported by: php-bug at webattractive dot de
Summary: mb-ereg-replace default options "r" and "s" not
documented anywhere
Status: Open
Type: Documentation Problem
-Package: Documentation problem
+Package: mbstring related
Operating System: any
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
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>
Previous Comments:
------------------------------------------------------------------------
[2017-10-17 21:01:17] php-bug at webattractive dot de
Nothing in the Changelog. It only mentions the deprecation of the e modifier.
------------------------------------------------------------------------
[2017-10-17 20:19:46] 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
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=75401&edit=1
Thread (4 messages)