Bug #76052 [Opn->Nab]: libsodium seems not active in PHP 7.2.3

From: Date: Mon, 05 Mar 2018 14:53:05 +0000
Subject: Bug #76052 [Opn->Nab]: libsodium seems not active in PHP 7.2.3
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-214208@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=76052&edit=1 ID: 76052 Updated by: requinix@php.net Reported by: it-solutions at schultz dot ch Summary: libsodium seems not active in PHP 7.2.3 -Status: Open +Status: Not a bug Type: Bug Package: *Encryption and hash functions Operating System: Windows Srv 2012 PHP Version: 7.2.3 Block user comment: N Private report: N New Comment: What you're missing was mentioned in my first comment to that bug report: > Note that it will use global functions and constants, not a namespace. http://php.net/manual/en/book.sodium.php http://php.net/manual/en/function.sodium-crypto-secretbox-open.php Previous Comments: ------------------------------------------------------------------------ [2018-03-05 14:27:04] it-solutions at schultz dot ch Description: ------------ WINDOWS / APACHE 2.4 / PHP 7.2.3 After updating to PHP 7.2.3 (from 7.2.1) I receive the following error, when trying to use a lib-sodium function: mod_fcgid: stderr: PHP Fatal error: Uncaught Error: Call to undefined function Sodium\\crypto_secretbox_open() in ... When using PHP 7.1.15 (with manually activated LIB-SODIUM) the program works without errors. As far as I know, libsodium should be available as core-extension in PHP 7.2 (and I think this worked in PHP 7.2.0) Am I missing something here? Kind regards Ruediger Schultz Schultz IT Solutions Note: https://bugs.php.net/bug.php?id=74826 refers to PHP 7.2.0-alpha and was fixed. Maybe the underlying cause "reappeared" in PHP 7.2.1 or later... ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=76052&edit=1

« previous php.bugs (#214208) next »