以下脚本在openssl_decrypt()
来电时暂停。
<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
echo 'extension_loaded: ' . extension_loaded('openssl') . '<br>';
echo 'decrypted string: ' . openssl_decrypt("eXIp3BnsELdTuTvVkpoFqXuYoP6zd73ETDXiNcMhXUiuAm0ju4ufdX9Yxai4X7S3", "AES-128-ECB", "some password") . '<br>';
echo 'end<br>';
?>
返回:
extension_loaded: 1
脚本输出表明模块已加载,phpinfo()返回:
openssl
OpenSSL support enabled
OpenSSL Version OpenSSL 1.0.2k-fips 26 Jan 2017