Doc #78748 [NEW]: Undefined sodium_crypto_secretbox_keygen function
| From: | danitot93 at gmail dot com | Date: | Thu, 24 Oct 2019 14:01:55 +0000 |
| Subject: | Doc #78748 [NEW]: Undefined sodium_crypto_secretbox_keygen function | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-17033@lists.php.net to get a copy of this message | ||
From: danitot93 at gmail dot com
Operating system: Linux
PHP version: 7.2.24
Package: *Encryption and hash functions
Bug Type: Documentation Problem
Bug description:Undefined sodium_crypto_secretbox_keygen function
Description:
------------
https://www.php.net/manual/en/function.sodium-crypto-secretbox-keygen.php
(PHP 7 >= 7.2.0) - so sodium_crypto_secretbox_keygen function must be
defined in php 7.2.24
other sodium_* functions work fine.
I don't know is this Bug or Documentation Problem.
Test script:
---------------
<?php
$key = sodium_crypto_secretbox_keygen();
echo $key;
Expected result:
----------------
No errors.
Actual result:
--------------
Fatal error: Uncaught Error: Call to undefined function
sodium_crypto_secretbox_keygen()
--
Edit bug report at https://bugs.php.net/bug.php?id=78748&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=78748&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=78748&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=78748&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=78748&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=78748&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=78748&r=support
Expected behavior: https://bugs.php.net/fix.php?id=78748&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=78748&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=78748&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=78748&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=78748&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=78748&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=78748&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=78748&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=78748&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=78748&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=78748&r=mysqlcfg