====== PHP RFC: #[\Deprecated] Attribute ======
* Version: 1.3
* Date: 2024-04-15
* Author: Benjamin Eb... n
* First Published at: http://wiki.php.net/rfc/deprecated_attribute
===== Introduction =====
PHP’s internal functions can be marked as deprecated, making this information available to Reflection and emitting deprecation errors (<php>E_DEPRECATED</php>), but there is no //equivalent// functional
y to ExcludeList]] (Created 2020-06-09)
* [[rfc:deprecated_attribute|#[\Deprecated] Attribute]]\\ This RFC proposes an attribute to mark declarations as deprecated (Created 2020-05-07)
* [[rfc:var-export-array-s... Deprecations for PHP 7.4]] \\ Functionality to be deprecated in PHP 7.4. (Discussion started: 2019-06-21)
*
Error.
<code php>
//PHP 8.4
var_dump(0 ** -1); //Deprecated: Zero raised to a negative power is deprecated
var_dump(0 ** -1.1); //Deprecated: Zero raised to a negative power is deprecated
var_dump(pow(0, -1)); //Deprecated: Zero raised to a negativ
on is provided in the Proposal section:
* Soft-deprecated <php>DOMDocument</php> and <php>DOMEntity</php> p... ation in PHP 8.4 and removal in PHP 9.
==== Soft-deprecated DOMDocument and DOMEntity properties ====
Author...
The following properties have already been soft-deprecated for a long time:
* ''DOMDocument::$actualEncodi... any other well behaved constants, therefore it's deprecated.
<doodle title="Deprecate and remove the aforeme
e were [[https://github.com/php/php-src/pull/5067|deprecated in PHP 8.0]],
the case of implicitly nullable typ... d be noted that the example signatures above were deprecated prior to the introduction of [[rfc:named_params|n... llowing deprecation notice at compile time:
<PHP>
Deprecated: Implicitly marking parameter $var as nullable is deprecated, the explicit nullable type must be used instead
g
Changing any of the following settings will be deprecated:
* <php>session.use_only_cookies</php>
* <ph... t()</php> to their non-default value will also be deprecated.
The constant <php>SID</php> will also be deprecated as part of this RFC. The standalone proposal to deprec... omatic rewriting of URLs to add PHPSESSID will be deprecated.
The hack which allows for manual control of th
itionally, the ''$datalen'' property would become deprecated in favor of ''$dataLength'' in the subsequent min... reamBucket
{
/**
* @var resource
* @deprecated after resource to object conversion happens
... public $bucket;
public string $data;
/** @deprecated in PHP 8.5 or PHP 9.0 whichever comes next */