The handling of the 3rd parameter for assert callbacks set via `assert_options`
changed with the implementation of the expectations RFC, and changed again in
PHP 8. Update the documentation accordingly.
This one seems to be a cause for confusion; witness Bug [#79602]
(https://bugs.php.net/bug.php?id=79602).
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
Closes GH-120.
* Use FQCN for native attributes
For attributes, it's non-obvious that they need to be imported with `use` or
referenced with their FQCN, because applying a non-existent attribute is not an
error.
Make the examples copy-and-paste safe by adding the leading backslash, as
already done for `#[\SensitiveParameterValue]`.
Actually, most (or even all) datetime functions returned false prior to
PHP 8.0.0, where they now throw an error. Besides ZPP failures which
we certainly do not want to document explicitly, that also happened in
case the objects have not been properly initialized, which is so close
to ZPP failures, that we don't want to document that either.
Co-authored-by: Alexander Menshchikov <amenshchikov@gmail.com>
Closes GH-1358.
Clarify how to search for jit_debug options, and add an external link to
PHP zend_jit.h source file.
Hopefully, the clarification and link can save PHP the developer's and
user's time/effort with a simple click jumping to where they should go.
This patch has been verified on my local machine and link works well.
This risk is that doc viewer could get a dead link if PHP source code
file location moved or name changed in future. We just hope this is a
rare case and will not happen so frequently. We depend on user's
bug-report to fix any issue.
Reviewed-by: Christoph M. Becker <cmbecker69@gmx.de>
Signed-off-by: Su, Tao <tao.su@intel.com>
Closes GH-1340.
The str_replace page had a helpful note that if you'd somehow got
there when you were looking for preg_replace, you didn't need to
llok further. But if you were actually on the page for preg_replace,
there was no link to str_replace at all, not even in the See Also
section.
PECL stopped generating DLLs earlier this year. As of ext-mongodb 1.15.0, DLLs are now generated by a GitHub Action and attached to releases.
https://jira.mongodb.org/browse/PHPC-2143
* Add an example showing how two associative arrays are combined
* Modernize array syntax in first example, use var_dump over print_r, revise wording, add types of fruits and vegetables into second example
* Add `array_merge()` to the "See Also" section