* Update documentation for ldap_search()
* Improve documentation for ldap_search()
* Use new entity for return values, update additional ldap_* method docs
* Avoid text duplication in ldap documentation
* Move para tag into entity
Co-authored-by: Sergey Panteleev <sergey@php.net>
We explicitly add the info to every ctype's function return value
section.
We also overhaul the ctype introduction section by removing obsolete
information, adding a warning about the deprecation of int parameters,
and removing personalization.
- Move utf8_encode and utf8_decode into the strings chapter, since
they were moved out of the XML extension in 7.2
- Recommend mb_convert_encoding, iconv, and UConverter::transcode
when mentioning encoding in passing
- Document UConverter::transcode, based on examination of source
and upstream ICU docs
- Make the language used more consistent, e.g. "convert" rather
than "encode"/"decode", "encoding" rather than "charset"
Closes GH-1418.
* Document change in behaviour of misplaced optional parameters in 8.1
(see https://github.com/php/php-src/commit/afc4d67c)
* Expand and update documentation of default/optional parameters
* Fix example labels to use correctly formatted entities
* Style improvements, and a couple of extra notes.
Closes GH-1191.
* Fix 80971: func_get_args() didnt work when using named args
* Update language-snippets.ent
Co-authored-by: George Peter Banyard <girgias@php.net>
* Update language-snippets.ent
* Update language-snippets.ent
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
* Update language-snippets.ent
Co-authored-by: George Peter Banyard <girgias@php.net>
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
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.
* add pspell related object class.
* changed resource list description.
* changes pspell function signature and parameters, changelog.
* use pspell.parameter.pspell-dictionary snippet.
We're misusing the already existing `¬e.context-support;` for this,
but remove the PHP 5 related info from it, and link directly to stream
contexts.
INTL_MAX_LOCALE_LEN limits the length of accepted locale. Anything
longer than that will result in a failure and the value returned
will either be `null` or `false`. So documentation must reflect that
in the return types.
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
Closes GH-883.