[DOC-CVS] [doc-en] master: Mark $http_response_header as deprecated (#4977)
[email protected] (Gina Peter Banyard via GitHub)
| Newsgroups | php.doc.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: Gina Peter Banyard (Girgias) Committer: GitHub (web-flow) Pusher: Girgias Date: 2025-11-05T21:36:51Z Commit: https://github.com/php/doc-en/commit/fcf847c112e36140d1fdf30cc6fc83cb1c4eb297 Raw diff: https://github.com/php/doc-en/commit/fcf847c112e36140d1fdf30cc6fc83cb1c4eb297.diff Mark $http_response_header as deprecated (#4977) Changed paths: M language/predefined/variables/httpresponseheader.xml M language/predefined/versions.xml Diff: diff --git a/language/predefined/variables/httpresponseheader.xml b/language/predefined/variables/httpresponseheader.xml index 5c7b52b601b0..dd42a175a820 100644 --- a/language/predefined/variables/httpresponseheader.xml +++ b/language/predefined/variables/httpresponseheader.xml @@ -6,6 +6,13 @@ <refpurpose>HTTP response headers</refpurpose> </refnamediv> + <refsynopsisdiv> + &warn.deprecated.feature-8-5-0; + <simpara> + Use <function>http_get_last_response_headers</function> instead. + </simpara> + </refsynopsisdiv> + <refsect1 role="description"> &reftitle.description; <para> diff --git a/language/predefined/versions.xml b/language/predefined/versions.xml index 528d7b287a3a..e76bf2bc175f 100644 --- a/language/predefined/versions.xml +++ b/language/predefined/versions.xml @@ -154,7 +154,7 @@ <function name="_FILES" from="PHP 4 >= 4.1.0, PHP 5, PHP 7, PHP 8"/> <function name="_GET" from="PHP 4 >= 4.1.0, PHP 5, PHP 7, PHP 8"/> <function name="GLOBALS" from="PHP 4, PHP 5, PHP 7, PHP 8"/> - <function name="http_response_header" from="PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8"/> + <function name="http_response_header" from="PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8" deprecated="PHP 8.5.0" /> <function name="php_errormsg" from="PHP 4, PHP 5, PHP 7" deprecated="PHP 7.2.0" removed="PHP 8"/> <function name="_POST" from="PHP 4 >= 4.1.0, PHP 5, PHP 7, PHP 8"/> <function name="_REQUEST" from="PHP 4 >= 4.1.0, PHP 5, PHP 7, PHP 8"/>