* Fix return type for 5 functions: bool -> true
These functions always return true (or throw on error):
- finfo_close (fileinfo)
- ftp_set_option (ftp)
- libxml_set_external_entity_loader (libxml)
- shm_detach (shmop)
- array_multisort (standard)
* Add changelog entries for return type change bool -> true
* Fix changelog version: use 8.5.0 instead of entity hardcoded to 8.2.0
The &return.type.true; entity is hardcoded with version 8.2.0, but all
5 functions changed their return type from bool to true in PHP 8.5.
Replace the entity with manual changelog rows using the correct version.
Since PHP8 this is no longer a warning but an actual exception.
Throw was never really right in the first place however, as warnings
are _emitted_, not _thrown_.
* array-map.xml Change the misleading wording
Keys of input arrays are ignored. The function only considers the sequential order of elements (as determined by their internal pointers), not their indices
* Update reference/array/functions/array-map.xml
Co-authored-by: Kamil Tekiela <tekiela246@gmail.com>
---------
Co-authored-by: Kamil Tekiela <tekiela246@gmail.com>
Why not add a few words about what a 'zip operation' is? Yes, the `array_map` page contains a sample code, but it does not contain a formal explanation, as far as all other doc pages. I suppose this information will be useful :-)
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
* globals.xml: add a link to the explanation of the term "symbol table"
+ amend the code examples
* extract.xml: add a link to the explanation of the term "symbol table"
+ amend the code examples
* compact.xml: add a link to the explanation of the term "symbol table"
+ amend the code examples
* references.xml: add a link to the explanation of the term "symbol table"
+ amend the code examples
* Nits
---------
Co-authored-by: Gina Peter Banyard <girgias@php.net>
Create an XML sort.callback.description entity which contains the description of this parameter with the caution
Co-authored-by: George Peter Banyard <girgias@php.net>
Various functions and method have had their return type changed to true.
Fix this and add changelog entries.
Co-authored-by: George Peter Banyard <girgias@php.net>
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
The array_unique function doesn't sort, but compares.
It uses the same constants but terms are mixed up.
The text uses "sorting" while each constant uses "compare".
This is now streamlined in order to reduce friction while reading.