Рекурсивный акроним словосочетания «PHP: Hypertext Preprocessor»
Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 38860 программистов и 2515 роботов. Сейчас ищут 1172 программиста ...
Changed functions
Вернуться к: Migrating from PHP 5.5.x to PHP 5.6.x
PHP Core
-
crypt() will now raise an
E_NOTICEerror if thesaltparameter is omitted. -
substr_compare() will now accept 0
for its
lengthparameter. - unserialize() will now fail if passed serialised data that has been manipulated to attempt to instantiate an object without calling its constructor.
cURL
-
Uploads using the @file syntax are now only supported
if the
CURLOPT_SAFE_UPLOADoption is set toFALSE. CURLFile should be used instead.
Mcrypt
-
The
sourceparameter of mcrypt_create_iv() now defaults toMCRYPT_DEV_URANDOMinstead ofMCRYPT_DEV_RANDOM.
OpenSSL
-
stream_socket_enable_crypto() now allows the
crypto_typeparameter to be optional if the stream's SSL context includes the newcrypto_typeoption.
PostgreSQL
- pg_insert(), pg_select(), pg_update() and pg_delete() are no longer experimental.
- pg_send_execute(), pg_send_prepare(), pg_send_query() and pg_send_query_params() will 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
NULLif the attribute could not be found, like XMLReader::getAttribute().
Вернуться к: Migrating from PHP 5.5.x to PHP 5.6.x