The definition of `search_value` in "Parameters" is a bit ambiguous. "these values" _could_ be interpreted to mean that if an array is passed as the `$search_value`, keys of elements of `$search_value` that match _any_ of those `$array` elements will be returned.
Note, the "Description" section does not have this ambiguity as it states "that value" instead of "those values".
Closes GH-1429.
* 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.
Length parameter to substr() behaves differently for PHP8+. It recognizes null as if no value was provided at all. Updated the documentation to reflect this.
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
Closes GH-1219.
The word "parents" in "When an extending class overrides the parents definition of a method,
PHP will not call the parent's method." needs to be changed to "parent's".
Closes GH-1389.
* Fix argument type in EventBufferEvent::setCallback() method and make it mixed instead of string.
* Add missed argument to signature of EventBufferEvent::__construct()
Closes GH-1384.
This patch clarifies the usage of the four JIT tunable options -
jit_hot_{loop,func,return,side_exit} - in PHP manual which end users
should be aware of before they start to tune these options.
1. Valid value range
2. Default value will be used in case beyond valid range
3. Special case of zero value
The patch was verified on my machine with phd local website.
Signed-off-by: Su, Tao <tao.su@intel.com>
Closes GH-1350.
As a new bird to PHP interpreter, I tried to set jit_bisect_limit
with jit=tracing in order to debug/probe PHP JIT feature, but
failed to hit my breakpoint and hence got confused.
I found that jit_bisect_limit only works under special JIT trigger
mode like 0: on script load, or 1: on first execution, after heavily
reading source code and trial-and-error experiments.
So, I would like to clarify the usage in PHP manual.
Hopefully, this can save time cost and reduce confusion of new PHP
interpreter developers.
The patch is verified on my local machine with phd build and the
web content and link looks good.
Signed-off-by: Su, Tao <tao.su@intel.com>
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
Closes GH-1337.
These classes are already documented elsewhere. toPHP() is rarely used directly and the types themselves are uncommon, so there is little need to call them out here.
This doesn't work anymore since we've switched to using GH issues for
php-src bugs as well. Since there is only one occurrence left, and
that needs some rewording anyway, we hard code the URLs for now.