Doc #78748 [Fbk->NoF]: Undefined sodium_crypto_secretbox_keygen function
| From: | php-bugs at lists dot php dot net | Date: | Sun, 03 Nov 2019 04:22:06 +0000 |
| Subject: | Doc #78748 [Fbk->NoF]: Undefined sodium_crypto_secretbox_keygen function | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-17040@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: php-bugs@lists.php.net
Reported by: danitot93 at gmail dot com
Summary: Undefined sodium_crypto_secretbox_keygen function
-Status: Feedback
+Status: No Feedback
Type: Documentation Problem
Package: *Encryption and hash functions
Operating System: Linux
PHP Version: 7.2.24
Assigned To: cmb
Private report: N
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2019-10-24 15:01:27] cmb@php.net
Are you using a distro? Does this distro actually ship
PECL/sodium instead of ext/sodium? If so, which version of
PECL/sodium?
------------------------------------------------------------------------
[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