Changed functions
PHP Core
-
cryptwill now raise anE_NOTICEerror if thesaltparameter is omitted. -
substr_comparewill now accept0for itslengthparameter. -
unserializewill now fail if passed serialised data that has been manipulated to attempt to instantiate an object without calling its constructor.
cURL
- Uploads using the
@filesyntax are now only supported if theCURLOPT_SAFE_UPLOADoption is set to ENTITY.CURLFileshould be used instead.
Mcrypt
- The
sourceparameter ofmcrypt_create_ivnow defaults toMCRYPT_DEV_URANDOMinstead ofMCRYPT_DEV_RANDOM.
OpenSSL
stream_socket_enable_cryptonow allows thecrypto_typeparameter to be optional if the stream's SSL context includes the newcrypto_typeoption.
PostgreSQL
-
pg_insert,pg_select,pg_updateandpg_deleteare no longer experimental. -
pg_send_execute,pg_send_prepare,pg_send_queryandpg_send_query_paramswill no longer block until query write completion if the underlying socket stream for the database connection is set to non-blocking mode.
Reflection
- ReflectionClass::newInstanceWithoutConstructor now allows non-final internal classes to be instantiated.
XMLReader
- XMLReader::getAttributeNs and XMLReader::getAttributeNo now return ENTITY if the attribute could not be found, like XMLReader::getAttribute.
这篇文档对你有帮助吗?
谢谢你的反馈!