簡體   English   中英

PHPBrew:無法安裝或添加 argon2i 散列

[英]PHPBrew: cannot install or add argon2i hashing

我沒有找到將 argon2i 散列添加到 phpbrew 中正在運行的 7.2.27 版本的方法。 有沒有辦法完成它? 我試過了

phpbrew ext install argon2i

我明白了

Downloading https://pecl.php.net/rest/r/argon2i/stable.txt via curl extension
CurlKit\CurlException: (22) The requested URL returned error: 404 Not Found at [https://pecl.php.net/rest/r/argon2i/stable.txt:The requested URL returned error: 404 Not Found]
Trace:

    0) CurlKit\CurlDownloader->request('https://pecl.php.net/rest/r/argon2i/stable.txt')
    1) PhpBrew\Downloader\PhpCurlDownloader->process('https://pecl.php.net/rest/r/argon2i/stable.txt', '/tmp/phpbrew_R5kDEJ')
    2) PhpBrew\Downloader\BaseDownloader->download('https://pecl.php.net/rest/r/argon2i/stable.txt')
    3) PhpBrew\Downloader\BaseDownloader->request('https://pecl.php.net/rest/r/argon2i/stable.txt')
    4) PhpBrew\Extension\Provider\PeclProvider->buildPackageDownloadUrl('stable')
    5) PhpBrew\Extension\ExtensionDownloader->download(PhpBrew\Extension\Provider\PeclProvider, 'stable')
    6) PhpBrew\Command\ExtensionCommand\InstallCommand->execute('argon2i')
    7) call_user_func_array([PhpBrew\Command\ExtensionCommand\InstallCommand, 'execute'], ['argon2i'])
    8) CLIFramework\CommandBase->executeWrapper(['argon2i'])
    9) CLIFramework\Application->run(['/usr/local/bin/phpbrew', 'ext', 'install', 'argon2i'])
    10) PhpBrew\Console->runWithTry(['/usr/local/bin/phpbrew', 'ext', 'install', 'argon2i'])
    11) require('phar:///usr/local/bin/phpbrew/bin/phpbrew')

所以沒有 ext argon2 或 argon2i。

我肯定是通過 apt-get 安裝了 argon2

sudo apt install argon2 libargon2-0 libargon2-0-dev

成功地。

但我不知道如何讓 PHP 使用該庫。 有什么提示嗎?

找到它:您必須使用選項 --with-password-argon2 重新安裝:

phpbrew install php-7.3.19 +default -- --with-password-argon2

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM