PHP - Manual: 函数的变化
2025-10-24
salt 参数,crypt() 会产生
E_NOTICE错误。
length 参数现在接受 0 的值。
CURLOPT_SAFE_UPLOAD 为 false 的情况下,
才接受 @file 语法上传文件。
最好使用 CURLFile 代替。
source
现在默认值是
MCRYPT_DEV_URANDOM,而非
MCRYPT_DEV_RANDOM。
crypto_type 选项,
stream_socket_enable_crypto() 可以忽略 crypto_type 参数。
null 。
官方地址:https://www.php.net/manual/en/migration56.changed-functions.php