略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: 函数的变化

2024-04-30

函数的变化

PHP 内核

  • 如果省略 salt 参数,crypt() 会产生 E_NOTICE错误。
  • substr_compare()length 参数现在接受 0 的值。
  • unserialize() will now fail if passed serialised data that has been manipulated to attempt to instantiate an object without calling its constructor.

cURL

  • 只有设置 CURLOPT_SAFE_UPLOADfalse 的情况下, 才接受 @file 语法上传文件。 最好使用 CURLFile 代替。

Mcrypt

  • mcrypt_create_iv()source 现在默认值是 MCRYPT_DEV_URANDOM,而非 MCRYPT_DEV_RANDOM

OpenSSL

PostgreSQL

Reflection

XMLReader

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/migration56.changed-functions.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3