php.net |  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
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
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()

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-10-24 15:01 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2019-10-24 15:01 UTC] 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-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-2020 The PHP Group
All rights reserved.
Last updated: Fri Jul 10 01:01:27 2020 UTC