PHP Velho Oeste 2024

安装

从 PHP 5.1.2 开始,哈希扩展是内置的,不需要外部库, 并且默认是启用的。

可以通过 --disable-hash 参数来禁用此扩展。 对于更早版本的 PHP,可以通过安装 » PECL 模块 来使用哈希扩展。

从 PHP 7.4.0 开始,Hash 扩展成为 PHP 的核心扩展,所以可以直接使用。

add a note add a note

User Contributed Notes 1 note

up
0
rdlowrey at php dot net
9 years ago
Though this page claims hash is part of core , you will not have it if you use the "--disable-all" switch in your config. In this case it is necessary to also use "--enable-hash" to access the associated functionality.
To Top