svn: /phpdoc/en/trunk/reference/network/functions/ setcookie.xml

From: Date: Mon, 24 Aug 2015 21:28:18 +0000
Subject: svn: /phpdoc/en/trunk/reference/network/functions/ setcookie.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-13650@lists.php.net to get a copy of this message
cmb Mon, 24 Aug 2015 21:28:18 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=337614 Log: added proper <initializer>s That saves the need to explain how to skip optional parameters. Changed paths: U phpdoc/en/trunk/reference/network/functions/setcookie.xml Modified: phpdoc/en/trunk/reference/network/functions/setcookie.xml =================================================================== --- phpdoc/en/trunk/reference/network/functions/setcookie.xml 2015-08-24 21:14:15 UTC (rev 337613) +++ phpdoc/en/trunk/reference/network/functions/setcookie.xml 2015-08-24 21:28:18 UTC (rev 337614) @@ -11,10 +11,10 @@ <methodsynopsis> <type>bool</type><methodname>setcookie</methodname> <methodparam><type>string</type><parameter>name</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>value</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>value</parameter><initializer>""</initializer></methodparam> <methodparam choice="opt"><type>int</type><parameter>expire</parameter><initializer>0</initializer></methodparam> - <methodparam choice="opt"><type>string</type><parameter>path</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>domain</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>path</parameter><initializer>""</initializer></methodparam> + <methodparam choice="opt"><type>string</type><parameter>domain</parameter><initializer>""</initializer></methodparam> <methodparam choice="opt"><type>bool</type><parameter>secure</parameter><initializer>false</initializer></methodparam> <methodparam choice="opt"><type>bool</type><parameter>httponly</parameter><initializer>false</initializer></methodparam> </methodsynopsis> @@ -40,14 +40,6 @@ <refsect1 role="parameters"> &reftitle.parameters; <para> - All the arguments except the <parameter>name</parameter> argument are - optional. You may also replace an argument with an empty string - (<emphasis>&quot;&quot;</emphasis>) in order to skip that argument. - Because the <parameter>expire</parameter> argument is integer, it cannot - be skipped with an empty string, use a zero (<emphasis>0</emphasis>) - instead. - </para> - <para> <link xlink:href="&url.rfc;6265">RFC 6265</link> provides the normative reference on how each <function>setcookie</function> parameter is interpreted.

« previous php.doc.cvs (#13650) next »