All PCRE pattern matching functions will throw a warning when an invalid regex is passed to the `$pattern` parameter.
See: https://3v4l.org/WkVIW
This was thus far undocumented behaviour.
This PR adds:
* The "Errors/Exceptions" section to each of the PCRE pattern matching function documentation pages (if it didn't exist yet).
* Adds a macro for the text snippet about the warning to display in the section and uses that in the "Errors/Exceptions" section for each function.
Co-authored-by: jrfnl <jrfnl@users.noreply.github.com>
Closes GH-1057.
The PHP 7.4 `$flags` parameter as added to the `preg_replace_callback()` and `preg_replace_callback_array()` function was not yet included in the documentation.
In this PR, I'm
* Adding the parameter to the function signature.
* Adding minimal parameter documentation with a reference to the more detailed explanation in the parameter documentation of the [`preg_match()`](https://www.php.net/manual/en/function.preg-match.php) function.
* Adding a changelog entry for the parameter to each function.
Refs:
* https://github.com/php/php-src/pull/3958
* 2f1398dad9/UPGRADING (L304-L308)
Patch contributed by jrfnl.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349965 c90b9560-bf6c-de11-be94-00142212c4b1
I've removed the example: it was terrific, but the function reference has a
good example, and it was much too long for the page.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337869 c90b9560-bf6c-de11-be94-00142212c4b1