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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: danitot93 at gmail dot com
New email:
PHP Version: OS:

 

 [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: Sun Jul 12 14:01:25 2020 UTC