Bug #79597 [NEW]: Error in openssl-random-pseudo-bytes Example #1
| From: | software_onbekend at hotmail dot com | Date: | Thu, 14 May 2020 17:00:24 +0000 |
| Subject: | Bug #79597 [NEW]: Error in openssl-random-pseudo-bytes Example #1 | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-28635@lists.php.net to get a copy of this message | ||
From: software_onbekend at hotmail dot com
Operating system:
PHP version: Irrelevant
Package: Website problem
Bug Type: Bug
Bug description:Error in openssl-random-pseudo-bytes Example #1
Description:
------------
---
From manual page: https://php.net/function.openssl-random-pseudo-bytes
---
The iterator in Example #1 start with the value -1
This gives an error: Fatal error: Uncaught Error: Length must be greater
than 0.
Removing the minus sign solves the issue.
--
Edit bug report at https://bugs.php.net/bug.php?id=79597&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=79597&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=79597&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=79597&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=79597&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=79597&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=79597&r=support
Expected behavior: https://bugs.php.net/fix.php?id=79597&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=79597&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=79597&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=79597&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=79597&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=79597&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=79597&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=79597&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=79597&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=79597&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=79597&r=mysqlcfg