[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-doc-cvs
Subject:    [DOC-CVS] =?utf-8?q?svn:_/phpdoc/en/trunk/reference/openssl/functions/_openssl-random-pseudo-bytes.x
From:       Christoph_Michael_Becker <cmb () php ! net>
Date:       2020-05-17 11:01:55
Message-ID: svn-cmb-1589713315-349902-1155137907 () svn ! php ! net
[Download RAW message or body]

cmb                                      Sun, 17 May 2020 11:01:55 +0000

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

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/en/trunk/reference/openssl/functions/openssl-random-pseudo-bytes.xml

Modified: phpdoc/en/trunk/reference/openssl/functions/openssl-random-pseudo-bytes.xml
===================================================================
--- phpdoc/en/trunk/reference/openssl/functions/openssl-random-pseudo-bytes.xml	2020-05-17 \
                10:58:29 UTC (rev 349901)
+++ phpdoc/en/trunk/reference/openssl/functions/openssl-random-pseudo-bytes.xml	2020-05-17 \
11:01:55 UTC (rev 349902) @@ -66,7 +66,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);

@@ -81,14 +81,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)



-- 
PHP Documentation Commits Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic