Added a notice to document the fact that it's currently impossible to switch fibers in the destructor of an object cfr https://github.com/php/php-src/issues/8723.
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
Closes GH-1620.
Describe all the different ways and contexts in which PHP can type juggle.
The only bit which is not described is how ``++`` and ``--`` behave as they have peculiar behaviour which is documented on the operator page already.
The newly introduced tentative return types require us to specify
return types for the method implementation. Since `mixed` is only
available as of PHP 8.0.0, we use the `ReturnTypeWillChange` attribute
to suppress the deprecation for now.
This includes user note 127109 (well, at least the actionable part of
it).
The newly introduced tentative return types require us to specify
return types for the method implementation. Since `mixed` is only
available as of PHP 8.0.0, we use the `ReturnTypeWillChange` attribute
to suppress the deprecation for now.
This includes user note 127108 (well, at least the relevant parts of
it).
- UPGRADING says that the error_reporting (ie. value returned by error_reporting() or ini_get('error_reporting ')) is changed, not the severity value passed to the handler.
- UPGRADING says that the error_reporting() == 0 should be replaced with !(error_reporting() & $err_no) in code, not the return with return false. So there is currenctly no way how to detect @ operator.
- "Prior to PHP 8.0.0, the value of the severity passed to the custom error handler was always 0" - no true
- "return false; // Silenced" - not true, if the function returns false then the normal error handler continues, so it is not "silenced".
(partially reverts "Cleanup and update docs related to @ operator" commit 12b1d4704ea448b55ec155619be1e50c0e67e9f9.)
Co-authored-by: George Peter Banyard <girgias@php.net>
Co-authored-by: Larry Garfield <larry@garfieldtech.com>
* 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.
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.