|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #78748 Undefined sodium_crypto_secretbox_keygen function
Submitted: 2019-10-24 14:01 UTC Modified: 2019-11-03 04:22 UTC
Avg. Score:4.5 ± 0.9
Reproduced:4 of 4 (100.0%)
Same Version:1 (25.0%)
Same OS:0 (0.0%)
From: danitot93 at gmail dot com Assigned: cmb (profile)
Status: No Feedback Package: *Encryption and hash functions
PHP Version: 7.2.24 OS: Linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2019-10-24 14:01 UTC] danitot93 at gmail dot com

(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:

$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()


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2019-10-24 15:01 UTC]
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2019-10-24 15:01 UTC]
Are you using a distro?  Does this distro actually ship
PECL/sodium instead of ext/sodium?  If so, which version of
 [2019-11-03 04:22 UTC] php-bugs at lists dot php dot net
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.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jul 14 15:01:28 2024 UTC