svn: /phpdoc/ja/trunk/reference/openssl/functions/ openssl-random-pseudo-bytes.xml

From: Date: Mon, 18 May 2020 04:47:51 +0000
Subject: svn: /phpdoc/ja/trunk/reference/openssl/functions/ openssl-random-pseudo-bytes.xml
Groups: php.doc.ja 
Request: Send a blank email to doc-ja+get-5651@lists.php.net to get a copy of this message
mumumu Mon, 18 May 2020 04:47:51 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=349907 Log: Fix #79597: Error in openssl-random-pseudo-bytes Example #1 Bugs: https://bugs.php.net/79597 (error getting bug information) https://bugs.php.net/1 (error getting bug information) Changed paths: U phpdoc/ja/trunk/reference/openssl/functions/openssl-random-pseudo-bytes.xml Modified: phpdoc/ja/trunk/reference/openssl/functions/openssl-random-pseudo-bytes.xml =================================================================== --- phpdoc/ja/trunk/reference/openssl/functions/openssl-random-pseudo-bytes.xml 2020-05-18 04:45:33 UTC (rev 349906) +++ phpdoc/ja/trunk/reference/openssl/functions/openssl-random-pseudo-bytes.xml 2020-05-18 04:47:51 UTC (rev 349907) @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<!-- EN-Revision: 336957 Maintainer: takagi Status: ready --> +<!-- EN-Revision: 349902 Maintainer: takagi Status: ready --> +<!-- Credits: mumumu --> <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.openssl-random-pseudo-bytes"> <refnamediv> <refname>openssl_random_pseudo_bytes</refname> @@ -69,7 +70,7 @@ <programlisting role="php"> <![CDATA[ <?php -for ($i = -1; $i <= 4; $i++) { +for ($i = 1; $i <= 4; $i++) { $bytes = openssl_random_pseudo_bytes($i, $cstrong); $hex = bin2hex($bytes); @@ -84,14 +85,6 @@ &example.outputs.similar; <screen> <![CDATA[ -Lengths: Bytes: -1 and Hex: 0 -string(0) "" -NULL - -Lengths: Bytes: 0 and Hex: 0 -string(0) "" -NULL - Lengths: Bytes: 1 and Hex: 2 string(2) "42" bool(true)

« previous php.doc.ja (#5651) next »