svn: /phpdoc/de/trunk/reference/ bc/functions/bcmod.xml password/functions/password-hash.xml

[email protected] (Christoph Michael Becker)
Newsgroups php.doc.de
Message-ID <[email protected]>
cmb                                      Tue, 01 May 2018 22:15:18 +0000

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

Log:
Sync with EN

Changed paths:
    U   phpdoc/de/trunk/reference/bc/functions/bcmod.xml
    U   phpdoc/de/trunk/reference/password/functions/password-hash.xml

Modified: phpdoc/de/trunk/reference/bc/functions/bcmod.xml
===================================================================
--- phpdoc/de/trunk/reference/bc/functions/bcmod.xml	2018-05-01 20:27:46 UTC (rev 344902)
+++ phpdoc/de/trunk/reference/bc/functions/bcmod.xml	2018-05-01 22:15:18 UTC (rev 344903)
@@ -1,6 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 344123 Maintainer: sammywg Status: ready -->
+<!-- EN-Revision: 344896 Maintainer: sammywg Status: ready -->
+
 <refentry xml:id="function.bcmod" xmlns="http://docbook.org/ns/docbook">
  <refnamediv>
   <refname>bcmod</refname>
@@ -12,12 +13,14 @@
   <methodsynopsis>
    <type>string</type><methodname>bcmod</methodname>
    <methodparam><type>string</type><parameter>dividend</parameter></methodparam>
-   <methodparam><type>string</type><parameter>modulus</parameter></methodparam>
+   <methodparam><type>string</type><parameter>divisor</parameter></methodparam>
    <methodparam choice="opt"><type>int</type><parameter>scale</parameter></methodparam>
   </methodsynopsis>
   <para>
-   Liefert den Modulo des <parameter>dividend</parameter> unter Verwendung
-   von <parameter>modulus</parameter>.
+   Liefert den Rest der Division von <parameter>dividend</parameter>
+   durch <parameter>modulus</parameter>.
+   Solange <parameter>divisor</parameter> ungleich <literal>0</literal> ist,
+   hat das Ergnis dasselbe Vorzeichen wie <parameter>dividend</parameter>.
   </para>
  </refsect1>

@@ -34,10 +37,10 @@
      </listitem>
     </varlistentry>
     <varlistentry>
-     <term><parameter>modulus</parameter></term>
+     <term><parameter>divisor</parameter></term>
      <listitem>
       <para>
-       Der Modulo-Wert in Stringform.
+       Der Divisor in Stringform.
       </para>
      </listitem>
     </varlistentry>
@@ -48,7 +51,7 @@
  <refsect1 role="returnvalues">
   &reftitle.returnvalues;
   <para>
-   Gibt den Modulo als String zurück. Ist <parameter>modulus</parameter> <literal>0</literal>,
+   Gibt den Modulo als String zurück. Ist <parameter>divisor</parameter> <literal>0</literal>,
    wird &null; zurückgegeben.
   </para>
  </refsect1>
@@ -67,7 +70,7 @@
      <row>
       <entry>7.2.0</entry>
       <entry>
-       <parameter>dividend</parameter> und <parameter>modulus</parameter> werden
+       <parameter>dividend</parameter> und <parameter>divisor</parameter> werden
        nicht länger zu einer Ganzzahl abgeschnitten, so dass nun das Verhalten
        von <function>bcmod</function> eher <function>fmod</function> statt dem
        <literal>%</literal> Operator entspricht.
@@ -91,12 +94,26 @@
    <programlisting role="php">
 <![CDATA[
 <?php
-echo bcmod('4', '2'); // 0
-echo bcmod('2', '4'); // 2
+bcscale(0);
+echo bcmod( '5',  '3'); //  2
+echo bcmod( '5', '-3'); //  2
+echo bcmod('-5',  '3'); // -2
+echo bcmod('-5', '-3'); // -2
 ?>
 ]]>
    </programlisting>
   </example>
+  <example>
+   <title><function>bcmod</function> mit Dezimalzahlen</title>
+   <programlisting role="php">
+<![CDATA[
+<?php
+bcscale(1);
+echo bcmod('5.7', '1.3'); // 0.5 von PHP 7.2.0 an; 0 zuvor
+?>
+]]>
+   </programlisting>
+  </example>
  </refsect1>

  <refsect1 role="seealso">

Modified: phpdoc/de/trunk/reference/password/functions/password-hash.xml
===================================================================
--- phpdoc/de/trunk/reference/password/functions/password-hash.xml	2018-05-01 20:27:46 UTC (rev 344902)
+++ phpdoc/de/trunk/reference/password/functions/password-hash.xml	2018-05-01 22:15:18 UTC (rev 344903)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 343891 Maintainer: nobody Status: ready -->
+<!-- EN-Revision: 344891 Maintainer: nobody Status: ready -->
 <!-- Reviewed: no -->

 <refentry xml:id="function.password-hash" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -88,7 +88,7 @@
    <itemizedlist>
     <listitem>
      <para>
-      <literal>memory_cost</literal> (<type>integer</type>) - Maximum memory (in bytes) that may
+      <literal>memory_cost</literal> (<type>integer</type>) - Maximum memory (in kibibytes) that may
       be used to compute the Argon2 hash. Defaults to <constant>PASSWORD_ARGON2_DEFAULT_MEMORY_COST</constant>.
      </para>
     </listitem>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.