Doc #75875 [Opn->Nab]: Third argument of header() function has wrong description.

From: Date: Fri, 26 Jan 2018 09:13:15 +0000
Subject: Doc #75875 [Opn->Nab]: Third argument of header() function has wrong description.
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-15365@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=75875&edit=1 ID: 75875 Updated by: vrana@php.net Reported by: poczta at mwojtowicz dot it Summary: Third argument of header() function has wrong description. -Status: Open +Status: Not a bug Type: Documentation Problem Package: Documentation problem Operating System: Irrelevant PHP Version: Irrelevant Block user comment: N Private report: N New Comment: It talks about the first parameter named $string. I've renamed it to $header which is also its name in the sources: https://github.com/php/php-src/blob/9edf2e9f/ext/standard/head.c#L37 Previous Comments: ------------------------------------------------------------------------ [2018-01-26 09:10:57] vrana@php.net Automatic comment from SVN on behalf of vrana Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=343909 Log: Rename first parameter to header (bug #75875) ------------------------------------------------------------------------ [2018-01-25 22:34:21] poczta at mwojtowicz dot it Description: ------------ --- From manual page: http://www.php.net/function.header --- <varlistentry> <term><parameter>http_response_code</parameter></term> <listitem> <para> Forces the HTTP response code to the specified value. Note that this parameter only has an effect if the <parameter>string</parameter> is not empty. </para> </listitem> </varlistentry> should be at least <varlistentry> <term><parameter>http_response_code</parameter></term> <listitem> <para> Forces the HTTP response code to the specified value. Note that this parameter only has an effect if the <parameter>http_response_code</parameter> is not empty. </para> </listitem> </varlistentry> I wonder if there should be sentence "is not null" rather than "is not empty". ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=75875&edit=1

« previous php.doc.bugs (#15365) next »