1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/ext/openssl/tests/openssl_libctx_without_zts_argon.phpt
Jakub Zelenka ce6e7a2786 Integrate OpenSSL libctx to pwhash (#19236)
This allows using OpenSSL Argon2 password hashing on ZTS.

Closes GH-19236
2025-07-29 15:06:34 +02:00

19 lines
352 B
PHP

--TEST--
openssl.libctx INI setting when Argon2 disable or ZTS not used
--EXTENSIONS--
openssl
--INI--
openssl.libctx = default
--SKIPIF--
<?php
if (ZEND_THREAD_SAFE && function_exists('openssl_password_hash')) {
die("skip - ZTS test with Argon2 enabled");
}
?>
--FILE--
<?php
var_dump(ini_get('openssl.libctx'));
?>
--EXPECT--
string(7) "default"