====== PHP RFC: #[\Deprecated] Attribute ======
* Version: 1.4
* Date: 2024-05-04
* Author: Benjamin Eb... 8
* 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
====== PHP RFC: Remove deprecated functionality in PHP 7 ======
* Date: 2014-09-11
* Author: Nikita Popov ... C proposes to remove functionality which has been deprecated during the 5.x cycle.
The following extensions are deprecated:
* ext/ereg (since PHP 5.3; use ext/pcre inste... extension]])
The following language features are deprecated:
* Assignment of ''new'' by reference (since P
====== Request for Comments: Add a deprecated modifier for functions ======
* Version: 1.0
* Date: 2012-12...
* First Published at: https://wiki.php.net/rfc/deprecated-modifier
> This proposal has been **superseded** by [[rfc:deprecated_attribute|#[\Deprecated] Attribute]], which has been implemented in PHP 8.4.
===== Introduction =====
This
choices:
* **Short path**: a signature becomes deprecated in PHP 8.4 (or in PHP 8.3 when there is no need f... 0 at last.
* **Long path**: a signature becomes deprecated in PHP 8.4 (or in PHP 8.3 when there is no need f... 10.0.
* **No**: the signature should be neither deprecated, nor removed.
A few votes only include the "Shor... ion for more details.
**When will a signature be deprecated?**
When the "Short path" combined with the "Long
php.devel/76987
This RFC proposes to generate E_DEPRECATED errors when connecting to a MySQL database with t... cted.
<doodle title="Should ext/mysql generate E_DEPRECATED errors in PHP 5.5?" auth="user" voteType="single"... estion:
If the vote to make ext/mysql generate E_DEPRECATED errors is unsuccessful, what course of action do ... make the soft deprecation clearer, and generate E_DEPRECATED notices in PHP 5.6.
* **(b)** Enhance the manua
E_ALL | E_STRICT
; Production Value: E_ALL & ~E_DEPRECATED
; html_errors
; Default Value: On
; Developm... values by
; reference at function call time is a deprecated feature which will be removed
; from PHP at some ... ER_NOTICE - user-generated notice message
; E_DEPRECATED - warn about code that will not work in futu... re versions
; of PHP
; E_USER_DEPRECATED - user-generated deprecation warnings
;
; Common
p.net/rfc/deprecate_partially_supported_callables|Deprecated partially supported callables]] RFC and proposes ... p.net/rfc/deprecate_partially_supported_callables|Deprecated partially supported callables]] RFC was accepted ... returns `false`
</code>
In PHP 9.0, for the now deprecated partially supported callables, the "state" will g... e deprecation notices will only be thrown for the deprecated callable syntaxes, not for any other invalid synt
y value different than ''0'' will raise an <php>E_DEPRECATED</php> diagnostic.
<doodle title="Deprecate intl.... p> check.
We therefore propose to add:
<PHP>
#[\Deprecated(since: '8.5', message: "as this method does nothi... ult'' INI setting.
Moreover, this INI setting was deprecated in [[https://wiki.php.net/rfc/deprecations_php_8_... mysqli_stmt_execute()</php> and already marked as deprecated in the documentation (“mysqli_execute() is deprec
longer allowed due to the new rules, will emit E_DEPRECATED warnings, but will still allow the values in and ... hen it is considered safe (PHP 8 or later), the E_DEPRECATED warnings will be upgraded to E_RECOVERABLE_ERROR ... es would have:
* Drupal 7 homepage: One new E_DEPRECATED warning, which seems to catch faulty-looking code... min interface (across the all pages): One new E_DEPRECATED warning, which again seems to catch a real bug –
rs,
however this was
[[rfc:autovivification_false|deprecated in PHP 8.1]].
Therefore, the behaviour depending... , Emitting the following deprecation notice:<code>Deprecated: Automatic conversion of false to array is deprecated</code> And thus behave like an <php>array</php>, meanin... Emitting the following deprecation notice: <code>Deprecated: Automatic conversion of false to array is deprec
l''. The latter is very rarely used and should be deprecated. This includes both the ''(real)'' type-cast and ... al)'' type-cast is used and mark ''is_real()'' as deprecated.
<doodle title="Deprecate (real) cast and is_rea... tes_gpc()'' and ''get_magic_quotes_runtime()'' as deprecated.
This should only impact legacy code bases prior ... TER_SANITIZE_MAGIC_QUOTES ====
Magic quotes were deprecated all the way back in PHP 5.3 and later removed in
fa81606c492c9a668b2160d9a|Formally deprecate Soft-deprecated DOMDocument and DOMEntity properties]]
* [[ht... he Proposal section:
* Formally deprecate Soft-deprecated <php>DOMDocument</php> and <php>DOMEntity</php> p... e otherwise noted).
==== Formally deprecate Soft-deprecated DOMDocument and DOMEntity properties ====
* Au... ll/15369
The following properties have been soft-deprecated for at least [[https://github.com/php/doc-en/comm
====== Request for Comments: E_USER_DEPRECATED ======
* Version: 1.0
* Date: 2008-07-18
* Author: Lars S... irst Published at: http://wiki.php.net/rfc/e-user-deprecated-warning
===== Introduction =====
In 5.3 we introduced E_DEPRECATED to mark internal functions/classes/syntax elements as deprecated with a separate error level.
The same deprecation