Doc #78748 [Opn->Fbk]: Undefined sodium_crypto_secretbox_keygen function
| From: | cmb@php.net | Date: | Thu, 24 Oct 2019 15:01:28 +0000 |
| Subject: | Doc #78748 [Opn->Fbk]: Undefined sodium_crypto_secretbox_keygen function | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-17034@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=78748&edit=1
ID: 78748
Updated by: cmb@php.net
Reported by: danitot93 at gmail dot com
Summary: Undefined sodium_crypto_secretbox_keygen function
-Status: Open
+Status: Feedback
Type: Documentation Problem
Package: *Encryption and hash functions
Operating System: Linux
PHP Version: 7.2.24
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Are you using a distro? Does this distro actually ship
PECL/sodium instead of ext/sodium? If so, which version of
PECL/sodium?
Previous Comments:
------------------------------------------------------------------------
[2019-10-24 14:01:55] danitot93 at gmail dot com
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 this bug report at https://bugs.php.net/bug.php?id=78748&edit=1