svn: /phpdoc/ja/trunk/reference/session/functions/ session-name.xml session-set-cookie-params.xml

[email protected] (Yoshinari Takaoka) Tue, 15 Dec 2020 03:06:25 +0000
Newsgroups php.doc.ja
Message-ID <[email protected]>
mumumu                                   Tue, 15 Dec 2020 03:06:25 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=352085

Log:
Mimic 'Alternative signature' prompt for setcookie in other functions which set cookies

Changed paths:
    U   phpdoc/ja/trunk/reference/session/functions/session-name.xml
    U   phpdoc/ja/trunk/reference/session/functions/session-set-cookie-params.xml

Modified: phpdoc/ja/trunk/reference/session/functions/session-name.xml
===================================================================
--- phpdoc/ja/trunk/reference/session/functions/session-name.xml	2020-12-14 23:22:43 UTC (rev 352084)
+++ phpdoc/ja/trunk/reference/session/functions/session-name.xml	2020-12-15 03:06:25 UTC (rev 352085)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 351762 Maintainer: hirokawa Status: ready -->
+<!-- EN-Revision: 352082 Maintainer: hirokawa Status: ready -->
 <!-- CREDITS: shimooka,mumumu -->
 <refentry xml:id="function.session-name" xmlns="http://docbook.org/ns/docbook">
  <refnamediv>
@@ -83,28 +83,7 @@
   </para>
  </refsect1>

- <refsect1 role="examples">
-  &reftitle.examples;
-  <para>
-   <example>
-    <title><function>session_name</function> の例</title>
-    <programlisting role="php">
-<![CDATA[
-<?php
-
-/* セッション名をWebsiteIDに設定する */
-
-$previous_name = session_name("WebsiteID");
-
-echo "前回のセッション名は、$previous_name です。<br />";
-?>
-]]>
-    </programlisting>
-   </example>
-  </para>
- </refsect1>
-
-<refsect1 role="changelog">
+ <refsect1 role="changelog">
   &reftitle.changelog;
   <para>
    <informaltable>
@@ -142,6 +121,27 @@
   </para>
  </refsect1>

+ <refsect1 role="examples">
+  &reftitle.examples;
+  <para>
+   <example>
+    <title><function>session_name</function> の例</title>
+    <programlisting role="php">
+<![CDATA[
+<?php
+
+/* セッション名をWebsiteIDに設定する */
+
+$previous_name = session_name("WebsiteID");
+
+echo "前回のセッション名は $previous_name でした<br />";
+?>
+]]>
+    </programlisting>
+   </example>
+  </para>
+ </refsect1>
+
  <refsect1 role="seealso">
   &reftitle.seealso;
   <para>

Modified: phpdoc/ja/trunk/reference/session/functions/session-set-cookie-params.xml
===================================================================
--- phpdoc/ja/trunk/reference/session/functions/session-set-cookie-params.xml	2020-12-14 23:22:43 UTC (rev 352084)
+++ phpdoc/ja/trunk/reference/session/functions/session-set-cookie-params.xml	2020-12-15 03:06:25 UTC (rev 352085)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 351750 Maintainer: hirokawa Status: ready -->
+<!-- EN-Revision: 352083 Maintainer: hirokawa Status: ready -->
 <!-- CREDITS: shimooka,mumumu -->
 <refentry xml:id="function.session-set-cookie-params" xmlns="http://docbook.org/ns/docbook">
  <refnamediv>
@@ -18,6 +18,7 @@
    <methodparam choice="opt"><type class="union"><type>bool</type><type>null</type></type><parameter>secure</parameter><initializer>&null;</initializer></methodparam>
    <methodparam choice="opt"><type class="union"><type>bool</type><type>null</type></type><parameter>httponly</parameter><initializer>&null;</initializer></methodparam>
   </methodsynopsis>
+  <para>PHP 7.3.0 以降で使える代替のシグネチャ:</para>
   <methodsynopsis>
    <type>bool</type><methodname>session_set_cookie_params</methodname>
    <methodparam><type>array</type><parameter>lifetime_or_options</parameter></methodparam>