Bug #74826 [NEW]: libsodium does not appear to be present

From: Date: Thu, 29 Jun 2017 02:18:57 +0000
Subject: Bug #74826 [NEW]: libsodium does not appear to be present
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-209723@lists.php.net to get a copy of this message
From: terrafrost@php.net Operating system: Windows 10 PHP version: 7.2.0alpha2 Package: *Encryption and hash functions Bug Type: Bug Bug description:libsodium does not appear to be present Description: ------------ I downloaded PHP 7.2.0alpha2 for Windows / VC15 x64 Non Thread Safe (2017-Jun-21 00:03:34) and I'm not seeing libsodium in it. According to https://wiki.php.net/rfc/libsodium it's supposed to be in PHP 7.2. I don't see any "sodium" or "libsodium" extension in the ext directory. The word "sodium" does not appear in the output of php -i: https://pastebin.com/N8wtGG8c I also tried the example at the end of https://paragonie.com/book/pecl-libsodium/read/05-publickey-crypto.md#crypto-sign-seed-keypair and it didn't work. Test script: --------------- <?php $bob_seed = \Sodium\randombytes_buf(\Sodium\CRYPTO_SIGN_SEEDBYTES); $bob_sign_kp = \Sodium\crypto_sign_seed_keypair($bob_seed); Expected result: ---------------- Not a Fatal error... Actual result: -------------- Fatal error: Uncaught Error: Call to undefined function Sodium\randombytes_buf() in C:\path\to\test.php:3 Stack trace: #0 {main} thrown in C:\path\to\test.php on line 3 -- Edit bug report at https://bugs.php.net/bug.php?id=74826&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=74826&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=74826&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=74826&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=74826&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=74826&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=74826&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=74826&r=needscript Try newer version: https://bugs.php.net/fix.php?id=74826&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=74826&r=support Expected behavior: https://bugs.php.net/fix.php?id=74826&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=74826&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=74826&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=74826&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=74826&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=74826&r=dst IIS Stability: https://bugs.php.net/fix.php?id=74826&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=74826&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=74826&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=74826&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=74826&r=mysqlcfg

« previous php.bugs (#209723) next »