mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
Fix #73805: header() may not actually set header
We document that header() issues `E_WARNING` on failure, and link to `headers_list()` which might be used to check success of `header()`.
This commit is contained in:
parent
590f93a2eb
commit
f32912d04f
1 changed files with 9 additions and 0 deletions
|
@ -146,6 +146,14 @@ header('WWW-Authenticate: NTLM', false);
|
|||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="errors">
|
||||
&reftitle.errors;
|
||||
<para>
|
||||
On failure to schedule the header to be sent, <function>header</function>
|
||||
issues an <constant>E_WARNING</constant> level error.
|
||||
</para>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="examples">
|
||||
&reftitle.examples;
|
||||
<para>
|
||||
|
@ -280,6 +288,7 @@ exit;
|
|||
<member><function>setcookie</function></member>
|
||||
<member><function>http_response_code</function></member>
|
||||
<member><function>header_remove</function></member>
|
||||
<member><function>header_list</function></member>
|
||||
<member>
|
||||
The section on <link linkend="features.http-auth">HTTP
|
||||
authentication</link>
|
||||
|
|
Loading…
Reference in a new issue