====== PHP RFC: #[\Deprecated] Attribute ======
* Version: 1.4
* Date: 2024-05-04
* Author: Benjamin Eb... g
* First Published at: http://wiki.php.net/rfc/deprecated_attribute
===== Introduction =====
PHP’s intern... functions and (class-)constants 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
RFCs that are currently being voted on.
* [[rfc:deprecated_attribute|#[\Deprecated] Attribute]]\\ This RFC proposes an attribute to mark declarations as deprecated (Created 2020-05-07, Voting started: 2024-05-22, ... Deprecations for PHP 7.4]] \\ Functionality to be deprecated in PHP 7.4. (Discussion started: 2019-06-21)
*
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... dArray::__wakeup()</php> is pointless and such be deprecated.
<doodle title="Deprecate SplFixedArray::__wakeu
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