com doc/ja: Generate string methodsynopses based on stubs: reference/strings/functions/crypt.xml

[email protected] (Yoshinari Takaoka) Sat, 02 Jan 2021 03:31:54 +0000
Newsgroups php.doc.ja
Message-ID <[email protected]>
Commit:    495c1a1e2bc66ce32e2fc0772d37322455c5f937
Author:    Yoshinari Takaoka <[email protected]>         Sat, 2 Jan 2021 12:31:54 +0900
Parents:   3dd2e9ebb13d3d803b2fc4e0986d0ef70f2d2b11
Branches:  master

Link:       http://git.php.net/?p=doc/ja.git;a=commitdiff;h=495c1a1e2bc66ce32e2fc0772d37322455c5f937

Log:
Generate string methodsynopses based on stubs

Co-authored-by: Christoph M. Becker <[email protected]>

Closes GH-265.

Changed paths:
  M  reference/strings/functions/crypt.xml


Diff:
diff --git a/reference/strings/functions/crypt.xml b/reference/strings/functions/crypt.xml
index bfb236965b..0c8440913f 100644
--- a/reference/strings/functions/crypt.xml
+++ b/reference/strings/functions/crypt.xml
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: b2a1cefc64b35e4704b730776c51436b45142791 Maintainer: hirokawa Status: ready -->
+<!-- EN-Revision: 5453bb7d88a586ef1e5f2bb01dd9f1a7540af348 Maintainer: hirokawa Status: ready -->
 <!-- CREDITS: shimooka,mumumu -->
 <refentry xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://docbook.org/ns/docbook" xml:id="function.crypt">
  <refnamediv>
@@ -16,8 +16,8 @@
   &reftitle.description;
   <methodsynopsis>
    <type>string</type><methodname>crypt</methodname>
-   <methodparam><type>string</type><parameter>str</parameter></methodparam>
-   <methodparam choice="opt"><type>string</type><parameter>salt</parameter></methodparam>
+   <methodparam><type>string</type><parameter>string</parameter></methodparam>
+   <methodparam><type>string</type><parameter>salt</parameter></methodparam>
   </methodsynopsis>
   <para>
    <function>crypt</function> 文字列のハッシュを返します。
@@ -45,7 +45,7 @@
   <para>
    標準の DES ベースの場合、<function>crypt</function>
    は出力の最初の 2 文字を salt として使用します。また、
-   <parameter>str</parameter> の最初の 8 文字しか使用しません。
+   <parameter>string</parameter> の最初の 8 文字しか使用しません。
    つまり、最初の 8 文字が同じである長い文字列は、
    同じ salt を使う限り同じ結果となります。
   </para>
@@ -120,7 +120,7 @@
   <para>
    <variablelist>
     <varlistentry>
-     <term><parameter>str</parameter></term>
+     <term><parameter>string</parameter></term>
      <listitem>
       <para>
        ハッシュしたい文字列。
@@ -128,7 +128,7 @@
       <caution>
        <para>
         <constant>CRYPT_BLOWFISH</constant> を使うと、
-        <parameter>str</parameter> が最大 72 文字までに切り詰められます。
+        <parameter>string</parameter> が最大 72 文字までに切り詰められます。
        </para>
       </caution>
      </listitem>
@@ -162,6 +162,28 @@
   </warning>
  </refsect1>
 
+ <refsect1 role="changelog">
+  &reftitle.changelog;
+  <informaltable>
+   <tgroup cols="2">
+    <thead>
+     <row>
+      <entry>&Version;</entry>
+      <entry>&Description;</entry>
+     </row>
+    </thead>
+    <tbody>
+     <row>
+      <entry>8.0.0</entry>
+      <entry>
+       <parameter>salt</parameter> は、オプションではなくなりました。
+      </entry>
+     </row>
+    </tbody>
+   </tgroup>
+  </informaltable>
+ </refsect1>
+
  <refsect1 role="examples">
   &reftitle.examples;
   <para>
@@ -270,7 +292,6 @@ SHA-512:      $6$rounds=5000$usesomesillystri$D4IrlXatmP7rx3P3InaxBeoomnAihCKRVQ
  </refsect1>
 
 </refentry>
-
 <!-- Keep this comment at the end of the file
 Local variables:
 mode: sgml