PHP 8.0.3 Released!

Changelog

As alterações a seguir foram feitas em funções de extensões nativas

VersionFunctionDescription
PHP 4.3.3ftruncateAntes desta versão, ftruncate retornava integer no valor 1 no caso de sucesso, ao invés de boolean true.
PECL OCI8 1.4oci_set_prefetchBefore this release, rows must be >= 1.
PECL OCI8 1.3.4oci_set_prefetchBefore this release, prefetching was limited to the lesser of rows rows and 1024 * rows bytes. The byte size restriction has now been removed.
PECL 3.0.0IntlDateFormatter::formatSupport for providing IntlCalendar objects to the value parameter was added.
Desde o 5.0.0get_classO parâmetro object é opcional se chamado para um método do objeto.
 get_classO nome da classe é retornado em sua notação original.
 get_parent_classO parâmetro object é opcional se chamado de um método de objeto.
Desde o 4.0.5get_parent_classSe object é uma string, retorna o nome da classe pai da classe com este nome.
Antes do 5.1.0get_parent_classSe chamado sem parâmetro fora do objeto, esta função retornaria null com um aviso.
antes do 4.2.0get_object_varsSe as variáveis declaradas na classe da qual o object é uma instância, não foram assimilado um valor, estes não serão retornados no array
8.0.0, PECL OCI8 3.0.0OCICollection::appendThe OCI-Collection class was renamed to OCICollection to align with PHP naming standards.
 OCICollection::assignThe OCI-Collection class was renamed to OCICollection to align with PHP naming standards.
 OCICollection::assignElemThe OCI-Collection class was renamed to OCICollection to align with PHP naming standards.
 OCICollection::freeThe OCI-Collection class was renamed to OCICollection to align with PHP naming standards.
 OCICollection::getElemThe OCI-Collection class was renamed to OCICollection to align with PHP naming standards.
 OCICollection::maxThe OCI-Collection class was renamed to OCICollection to align with PHP naming standards.
 OCICollection::sizeThe OCI-Collection class was renamed to OCICollection to align with PHP naming standards.
 OCICollection::trimThe OCI-Collection class was renamed to OCICollection to align with PHP naming standards.
 OCILob::appendThe OCI-Lob class was renamed to OCILob to align with PHP naming standards.
 OCILob::closeThe OCI-Lob class was renamed to OCILob to align with PHP naming standards.
 OCILob::eofThe OCI-Lob class was renamed to OCILob to align with PHP naming standards.
 OCILob::eraseThe OCI-Lob class was renamed to OCILob to align with PHP naming standards.
 OCILob::exportThe OCI-Lob class was renamed to OCILob to align with PHP naming standards.
 OCILob::flushThe OCI-Lob class was renamed to OCILob to align with PHP naming standards.
 OCILob::freeThe OCI-Lob class was renamed to OCILob to align with PHP naming standards.
 OCILob::getBufferingThe OCI-Lob class was renamed to OCILob to align with PHP naming standards.
 OCILob::importThe OCI-Lob class was renamed to OCILob to align with PHP naming standards.
 OCILob::loadThe OCI-Lob class was renamed to OCILob to align with PHP naming standards.
 OCILob::readThe OCI-Lob class was renamed to OCILob to align with PHP naming standards.
 OCILob::rewindThe OCI-Lob class was renamed to OCILob to align with PHP naming standards.
 OCILob::saveThe OCI-Lob class was renamed to OCILob to align with PHP naming standards.
 OCILob::saveFileThe OCI-Lob class was renamed to OCILob to align with PHP naming standards.
 OCILob::seekThe OCI-Lob class was renamed to OCILob to align with PHP naming standards.
 OCILob::setBufferingThe OCI-Lob class was renamed to OCILob to align with PHP naming standards.
 OCILob::sizeThe OCI-Lob class was renamed to OCILob to align with PHP naming standards.
 OCILob::tellThe OCI-Lob class was renamed to OCILob to align with PHP naming standards.
 OCILob::truncateThe OCI-Lob class was renamed to OCILob to align with PHP naming standards.
 OCILob::writeThe OCI-Lob class was renamed to OCILob to align with PHP naming standards.
 OCILob::writeToFileThe OCI-Lob class was renamed to OCILob to align with PHP naming standards.
8.0.0 / 1.18.1ZipArchive::addGlob"comp_method", "comp_flags", "enc_method" and "enc_password" in options were added.
8.0.0 / 1.18.0ZipArchive::addEmptyDirflags was added.
 ZipArchive::addFileflags was added.
 ZipArchive::addFromStringflags was added.
 ZipArchive::addGlob"flags" in options was added.
 ZipArchive::getStatusStringThis method can be called on closed archive.
8.0.0com_event_sinksink_interface is nullable now.
 com_get_active_objectcodepage is nullable now.
 curl_multi_errnomulti_handle expects a CurlMultiHandle instance now; previously, a resource was expected.
 curl_multi_errnoThe function no longer returns false on failure.
 curl_setopthandle expects a CurlHandle instance now; previously, a resource was expected.
 curl_share_errnoThe function no longer returns false on failure.
 curl_share_errnoshare_handle expects a CurlShareHandle instance now; previously, a resource was expected.
 enchant_broker_describebroker expects an EnchantBroker instance now; previoulsy, a resource was expected.
 enchant_broker_describePrior to this version, the function returned false on failure.
 enchant_broker_dict_existsbroker expects an EnchantBroker instance now; previoulsy, a resource was expected.
 enchant_broker_freebroker expects an EnchantBroker instance now; previoulsy, a resource was expected.
 enchant_broker_free_dictdictionary expects a EnchantDictionary now; previoulsy, a resource was expected.
 enchant_broker_get_dict_pathbroker expects an EnchantBroker instance now; previoulsy, a resource was expected.
 enchant_broker_get_errorbroker expects an EnchantBroker instance now; previoulsy, a resource was expected.
 enchant_broker_initOn success, this function returns an EnchantBroker instance now; previoulsy, a resource was retured.
 enchant_broker_list_dictsPrior to this version, the function returned false on failure.
 enchant_broker_list_dictsbroker expects an EnchantBroker instance now; previoulsy, a resource was expected.
 enchant_broker_request_dictbroker expects an EnchantBroker instance now; previoulsy, a resource was expected.
 enchant_broker_request_dictOn success, this function returns an EnchantDictionary instance now; previoulsy, a resource was retured.
 enchant_broker_request_pwl_dictbroker expects an EnchantBroker instance now; previoulsy, a resource was expected.
 enchant_broker_request_pwl_dictOn success, this function returns an EnchantDictionary instance now; previoulsy, a resource was retured.
 enchant_broker_set_dict_pathbroker expects an EnchantBroker instance now; previoulsy, a resource was expected.
 enchant_broker_set_orderingbroker expects an EnchantBroker instance now; previoulsy, a resource was expected.
 enchant_dict_add_to_personaldictionary expects an EnchantDictionary instance now; previoulsy, a resource was expected.
 enchant_dict_add_to_sessiondictionary expects an EnchantDictionary instance now; previoulsy, a resource was expected.
 enchant_dict_checkdictionary expects an EnchantDictionary instance now; previoulsy, a resource was expected.
 enchant_dict_describedictionary expects an EnchantDictionary instance now; previoulsy, a resource was expected.
 enchant_dict_describePrior to this version, the function returned false on failure.
 enchant_dict_get_errordictionary expects an EnchantDictionary instance now; previoulsy, a resource was expected.
 enchant_dict_is_in_sessiondictionary expects an EnchantDictionary instance now; previoulsy, a resource was expected.
 enchant_dict_quick_checkdictionary expects an EnchantDictionary instance now; previoulsy, a resource was expected.
 enchant_dict_store_replacementdictionary expects an EnchantDictionary instance now; previoulsy, a resource was expected.
 enchant_dict_suggestdictionary expects an EnchantDictionary instance now; previoulsy, a resource was expected.
 finfo_buffercontext is nullable now.
 finfo_filecontext is nullable now.
 hash_update_filestream_context is now nullable.
 iconv_mime_decodeencoding is nullable now.
 iconv_mime_decode_headersencoding is nullable now.
 iconv_strlenencoding is nullable now.
 iconv_strposencoding is nullable now.
 iconv_strrposencoding is nullable now.
 iconv_substrlength and encoding are nullable now.
 ldap_addcontrols is nullable now; previously, it defaulted to [].
 ldap_add_extcontrols is nullable now; previously, it defaulted to [].
 ldap_bind_extcontrols is nullable now; previously, it defaulted to [].
 ldap_comparecontrols is nullable now; previously, it defaulted to [].
 ldap_deletecontrols is nullable now; previously, it defaulted to [].
 ldap_delete_extcontrols is nullable now; previously, it defaulted to [].
 ldap_exop_passwdcontrols is nullable now; previously, it defaulted to [].
 ldap_listcontrols is nullable now; previously, it defaulted to [].
 ldap_mod_addcontrols is nullable now; previously, it defaulted to [].
 ldap_mod_delcontrols is nullable now; previously, it defaulted to [].
 ldap_mod_replacecontrols is nullable now; previously, it defaulted to [].
 ldap_modify_batchcontrols is nullable now; previously, it defaulted to [].
 ldap_mod_add_extcontrols is nullable now; previously, it defaulted to [].
 ldap_mod_del_extcontrols is nullable now; previously, it defaulted to [].
 ldap_mod_replace_extcontrols is nullable now; previously, it defaulted to [].
 ldap_readcontrols is nullable now; previously, it defaulted to [].
 ldap_renamecontrols is nullable now; previously, it defaulted to [].
 ldap_rename_extcontrols is nullable now; previously, it defaulted to [].
 ldap_sasl_binddn, password, mech, realm, authc_id, authz_id and props are nullable now.
 ldap_searchcontrols is nullable now; previously, it defaulted to [].
 ldap_set_rebind_proccallback is nullable now.
 mb_check_encodingvalue and encoding are nullable now.
 mb_chrencoding is nullable now.
 mb_convert_encodingfrom_encoding is nullable now.
 mb_convert_kanaencoding is nullable now.
 mb_decode_numericentityencoding is nullable now.
 mb_detect_orderencoding is nullable now.
 mb_encode_mimeheadercharset and transfer_encoding are nullable now.
 mb_encode_numericentityencoding is nullable now.
 mb_eregThis function returns true on success now. Previously, it returned the byte length of the matched string if a match for pattern was found in string and matches was passed. If the optional parameter matches was not passed or the length of the matched string was 0, this function returned 1.
 mb_ereg_matchoptions is nullable now.
 mb_ereg_replaceoptions is nullable now.
 mb_ereg_replace_callbackoptions is nullable now.
 mb_ereg_searchpattern and options are nullable now.
 mb_ereg_search_initpattern and options are nullable now.
 mb_ereg_search_pospattern and options are nullable now.
 mb_ereg_search_regspattern and options are nullable now.
 mb_eregiThis function returns true on success now. Previously, it returned the byte length of the matched string if a match for pattern was found in string and matches was passed. If the optional parameter matches was not passed or the length of the matched string was 0, this function returned 1.
 mb_eregi_replaceoptions is nullable now.
 mb_http_inputtype is nullable now.
 mb_http_outputencoding is nullable now.
 mb_internal_encodingencoding is nullable now.
 mb_languagelanguage is nullable now.
 mb_ordencoding is nullable now.
 mb_parse_strThe second parameter was no longer optional.
 mb_regex_encodingencoding is nullable now.
 mb_regex_set_optionsoptions is nullable now.
 mb_regex_set_optionsIf the parameter options is given and not null, the previous options are returned. Formerly, the current options have been returned.
 mb_scrubencoding is nullable now.
 mb_send_mailadditional_params is nullable now.
 mb_str_splitencoding is nullable now.
 mb_str_splitThis function no longer returns false on failure.
 mb_strcutencoding is nullable now.
 mb_strimwidthencoding is nullable now.
 mb_striposencoding is nullable now.
 mb_stristrencoding is nullable now.
 mb_strlenencoding is nullable now.
 mb_strposencoding is nullable now.
 mb_strrchrencoding is nullable now.
 mb_strrichrencoding is nullable now.
 mb_strriposencoding is nullable now.
 mb_strrposencoding is nullable now.
 mb_strstrencoding is nullable now.
 mb_strwidthencoding is nullable now.
 mb_substitute_characterPassing an empty string to substitute_character is no longer supported; "none" should be passed instead.
 mb_substitute_characterencoding is nullable now.
 mb_substrencoding is nullable now.
 mb_substr_countencoding is nullable now.
 msg_get_queueOn success, this function returns a SysvMessageQueue instance now; previously, a resource was returned.
 msg_receivequeue expects a SysvMessageQueue instance now; previously, a resource was expected.
 msg_remove_queuequeue expects a SysvMessageQueue instance now; previously, a resource was expected.
 msg_sendqueue expects a SysvMessageQueue instance now; previously, a resource was expected.
 msg_set_queuequeue expects a SysvMessageQueue instance now; previously, a resource was expected.
 msg_stat_queuequeue expects a SysvMessageQueue instance now; previously, a resource was expected.
 sem_acquiresemaphore expects a SysvSemaphore instance now; previously, a resource was expected.
 sem_getOn success, this function returns a SysvSemaphore instance now; previously, a resource was returned.
 sem_getThe type of auto_release has been changed from int to bool.
 sem_releasesemaphore expects a SysvSemaphore instance now; previously, a resource was expected.
 sem_removesemaphore expects a SysvSemaphore instance now; previously, a resource was expected.
 shm_attachOn success, this function returns an SysvSharedMemory instance now; previously, a resource was returned.
 shm_attachsize is nullable now.
 shm_detachshm expects a SysvSharedMemory instance now; previously, a resource was expected.
 shm_get_varshm expects a SysvSharedMemory instance now; previously, a resource was expected.
 shm_has_varshm expects a SysvSharedMemory instance now; previously, a resource was expected.
 shm_put_varshm expects a SysvSharedMemory instance now; previously, a resource was expected.
 shm_removeshm expects a SysvSharedMemory instance now; previously, a resource was expected.
 shm_remove_varshm expects a SysvSharedMemory instance now; previously, a resource was expected.
 XMLWriter::endAttributewriter expects an XMLWriter instance now; previously, a resource was expected.
 XMLWriter::endCdatawriter expects an XMLWriter instance now; previously, a resource was expected.
 XMLWriter::endCommentwriter expects an XMLWriter instance now; previously, a resource was expected.
 XMLWriter::endDocumentwriter expects an XMLWriter instance now; previously, a resource was expected.
 XMLWriter::endDtdwriter expects an XMLWriter instance now; previously, a resource was expected.
 XMLWriter::endDtdAttlistwriter expects an XMLWriter instance now; previously, a resource was expected.
 XMLWriter::endDtdElementwriter expects an XMLWriter instance now; previously, a resource was expected.
 XMLWriter::endDtdEntitywriter expects an XMLWriter instance now; previously, a resource was expected.
 XMLWriter::endElementwriter expects an XMLWriter instance now; previously, a resource was expected.
 XMLWriter::endPiwriter expects an XMLWriter instance now; previously, a resource was expected.
 XMLWriter::flushThis function can no longer return false.
 XMLWriter::flushwriter expects an XMLWriter instance now; previously, a resource was expected.
 XMLWriter::fullEndElementwriter expects an XMLWriter instance now; previously, a resource was expected.
 XMLWriter::openMemoryThis function returns now an XMLWriter instance on success. Previouly, a resource has been returned in this case.
 XMLWriter::openUriThis function returns now an XMLWriter instance on success. Previouly, a resource has been returned in this case.
 XMLWriter::outputMemorywriter expects an XMLWriter instance now; previously, a resource was expected.
 XMLWriter::setIndentwriter expects an XMLWriter instance now; previously, a resource was expected.
 XMLWriter::setIndentStringwriter expects an XMLWriter instance now; previously, a resource was expected.
 XMLWriter::startAttributewriter expects an XMLWriter instance now; previously, a resource was expected.
 XMLWriter::startAttributeNswriter expects an XMLWriter instance now; previously, a resource was expected.
 XMLWriter::startAttributeNsprefix is nullable now.
 XMLWriter::startCdatawriter expects an XMLWriter instance now; previously, a resource was expected.
 XMLWriter::startCommentwriter expects an XMLWriter instance now; previously, a resource was expected.
 XMLWriter::startDocumentwriter expects an XMLWriter instance now; previously, a resource was expected.
 XMLWriter::startDtdwriter expects an XMLWriter instance now; previously, a resource was expected.
 XMLWriter::startDtdAttlistwriter expects an XMLWriter instance now; previously, a resource was expected.
 XMLWriter::startDtdElementwriter expects an XMLWriter instance now; previously, a resource was expected.
 XMLWriter::startDtdEntitywriter expects an XMLWriter instance now; previously, a resource was expected.
 XMLWriter::startElementwriter expects an XMLWriter instance now; previously, a resource was expected.
 XMLWriter::startElementNswriter expects an XMLWriter instance now; previously, a resource was expected.
 XMLWriter::startPiwriter expects an XMLWriter instance now; previously, a resource was expected.
 XMLWriter::textwriter expects an XMLWriter instance now; previously, a resource was expected.
 XMLWriter::writeAttributewriter expects an XMLWriter instance now; previously, a resource was expected.
 XMLWriter::writeAttributeNswriter expects an XMLWriter instance now; previously, a resource was expected.
 XMLWriter::writeCdatawriter expects an XMLWriter instance now; previously, a resource was expected.
 XMLWriter::writeCommentwriter expects an XMLWriter instance now; previously, a resource was expected.
 XMLWriter::writeDtdwriter expects an XMLWriter instance now; previously, a resource was expected.
 XMLWriter::writeDtdAttlistwriter expects an XMLWriter instance now; previously, a resource was expected.
 XMLWriter::writeDtdElementwriter expects an XMLWriter instance now; previously, a resource was expected.
 XMLWriter::writeDtdEntitywriter expects an XMLWriter instance now; previously, a resource was expected.
 XMLWriter::writeDtdEntitypublicId, systemId and notationData are nullable now.
 XMLWriter::writeElementwriter expects an XMLWriter instance now; previously, a resource was expected.
 XMLWriter::writeElementNswriter expects an XMLWriter instance now; previously, a resource was expected.
 XMLWriter::writePiwriter expects an XMLWriter instance now; previously, a resource was expected.
 XMLWriter::writeRawwriter expects an XMLWriter instance now; previously, a resource was expected.
 ReflectionParameter::getDefaultValueThis method now allows getting the default value of parameters of built-in functions and built-in class methods. Previously, a ReflectionException was thrown.
 ReflectionParameter::getDefaultValueConstantNameThis method now allows getting the default values' constant names of built-in functions and built-in class methods. Previously, a ReflectionException was thrown.
 XMLReader::getAttributeThis function can no longer return false.
 XMLReader::getAttributeNsThis function can no longer return false.
 XMLReader::lookupNamespaceThis function can no longer return false.
 XMLReader::nextname is nullable now.
 XMLReader::openXMLReader::open is now declared as static method, but can still be called on an XMLReader instance.
 XMLReader::XMLXMLReader::XML is now declared as static method, but can still be called on an XMLReader instance.
7.4.0hash_algosSupport for crc32c has been added.
 idn_to_asciiThe default value of variant is now INTL_IDNA_VARIANT_UTS46 instead of the deprecated INTL_IDNA_VARIANT_2003.
 idn_to_utf8The default value of variant is now INTL_IDNA_VARIANT_UTS46 instead of the deprecated INTL_IDNA_VARIANT_2003.
 ldap_control_paged_resultThis function has been deprecated.
 ldap_control_paged_result_responseThis function has been deprecated.
 preg_replace_callbackO parâmetro flags foi adicionado.
 preg_replace_callback_arrayThe flags parameter was added.
 str_getcsvO parâmetro escape agora interpreta uma string vazia como um sinal para desabilitar o mecanismo de escape. Antes, uma string vazia utilizava o valor padrão do parâmetro.
 SQLite3Stmt::bindParamsql_param now also supports the @param notation.
 SQLite3Stmt::bindValuesql_param now also supports the @param notation.
7.3.15, 7.4.3curl_setoptIntroduced CURLOPT_HTTP09_ALLOWED .
7.3.14, 7.4.2dba_openThe lmdb driver now supports an additional $mapsize parameter.
7.3.0curl_setoptIntroduced CURLOPT_ABSTRACT_UNIX_SOCKET, CURLOPT_KEEP_SENDING_ON_ERROR, CURLOPT_PRE_PROXY, CURLOPT_PROXY_CAINFO, CURLOPT_PROXY_CAPATH, CURLOPT_PROXY_CRLFILE, CURLOPT_PROXY_KEYPASSWD, CURLOPT_PROXY_PINNEDPUBLICKEY, CURLOPT_PROXY_SSLCERT, CURLOPT_PROXY_SSLCERTTYPE, CURLOPT_PROXY_SSL_CIPHER_LIST, CURLOPT_PROXY_SSLKEY, CURLOPT_PROXY_SSLKEYTYPE, CURLOPT_PROXY_SSL_OPTIONS, CURLOPT_PROXY_SSL_VERIFYHOST, CURLOPT_PROXY_SSL_VERIFYPEER, CURLOPT_PROXY_SSLVERSION, CURLOPT_PROXY_TLSAUTH_PASSWORD, CURLOPT_PROXY_TLSAUTH_TYPE, CURLOPT_PROXY_TLSAUTH_USERNAME, CURLOPT_SOCKS5_AUTH, CURLOPT_SUPPRESS_CONNECT_HEADERS, CURLOPT_DISALLOW_USERNAME_IN_URL, CURLOPT_DNS_SHUFFLE_ADDRESSES, CURLOPT_HAPPY_EYEBALLS_TIMEOUT_MS, CURLOPT_HAPROXYPROTOCOL, CURLOPT_PROXY_TLS13_CIPHERS, CURLOPT_SSH_COMPRESSION, CURLOPT_TIMEVALUE_LARGE and CURLOPT_TLS13_CIPHERS.
 is_countableis_countable has been added.
 mb_convert_caseAdded support for MB_CASE_FOLD, MB_CASE_UPPER_SIMPLE, MB_CASE_LOWER_SIMPLE, MB_CASE_TITLE_SIMPLE, and MB_CASE_FOLD_SIMPLE as mode.
 var_exportNow exports stdClass objects as an array cast to an object ((object) array( ... )), rather than using the nonexistent method stdClass::__setState. The practical effect is that now stdClass is exportable, and the resulting code will even work on earlier versions of PHP.
7.3ldap_addSupport for controls added
 ldap_compareSupport for controls added
 ldap_deleteSupport for controls added
 ldap_exopSupport for serverctrls added
 ldap_exop_passwdSupport for controls added
 ldap_listSupport for controls added
 ldap_mod_addSupport for controls added
 ldap_mod_delSupport for controls added
 ldap_mod_replaceSupport for controls added
 ldap_modify_batchSupport for controls added
 ldap_mod_add_extSupport for controls added
 ldap_mod_del_extSupport for controls added
 ldap_mod_replace_extSupport for controls added
 ldap_parse_resultSupport for controls added
 ldap_readSupport for controls added
 ldap_renameSupport for controls added
 ldap_rename_extSupport for controls added
 ldap_searchSupport for controls added
7.2.18, 7.3.5substr_compareoffset may now be equal to the length of main_str.
7.2.0array_uniqueSe sort_flags for SORT_STRING, o array anterior foi copiado e os elementos não únicos foram removidos (sem empacotar o array em seguida), mas um novo array é criado ao adicionar os novos elementos. Isto pode resultar em índices numéricos diferentes.
 hash_copyAccept and return HashContext instead of resource.
 hash_finalAccept HashContext instead of resource.
 hash_hmacUsage of non-cryptographic hash functions (adler32, crc32, crc32b, fnv132, fnv1a32, fnv164, fnv1a64, joaat) was disabled.
 hash_hmac_fileUsage of non-cryptographic hash functions (adler32, crc32, crc32b, fnv132, fnv1a32, fnv164, fnv1a64, joaat) was disabled.
 hash_initUsage of non-cryptographic hash functions (adler32, crc32, crc32b, fnv132, fnv1a32, fnv164, fnv1a64, joaat) with HASH_HMAC was disabled.
 hash_initReturn HashContext instead of resource.
 hash_pbkdf2Usage of non-cryptographic hash functions (adler32, crc32, crc32b, fnv132, fnv1a32, fnv164, fnv1a64, joaat) was disabled.
 hash_updateAccept HashContext instead of resource.
 hash_update_fileAccept HashContext instead of resource.
 hash_update_streamAccept HashContext instead of resource.
 idn_to_asciiINTL_IDNA_VARIANT_2003 has been deprecated; use INTL_IDNA_VARIANT_UTS46 instead.
 idn_to_utf8INTL_IDNA_VARIANT_2003 has been deprecated; use INTL_IDNA_VARIANT_UTS46 instead.
 mb_check_encodingThis function now also accepts an array as value. Formerly, only strings have been supported.
 mb_convert_encodingThis function now also accepts an array as string. Formerly, only strings have been supported.
 mb_parse_strCalling mb_parse_str without the second parameter was deprecated.
 mb_send_mailThe additional_headers parameter now also accepts an array.
 openssl_pkcs7_verifyThe p7bfilename parameter was added.
 password_hashSuporte para passwords Argon2 usando PASSWORD_ARGON2I foi adicionado.
 preg_matchThe PREG_UNMATCHED_AS_NULL is now supported for the $flags parameter.
 preg_match_allThe PREG_UNMATCHED_AS_NULL is now supported for the $flags parameter.
 PDOStatement::debugDumpParamsPDOStatement::debugDumpParams now returns the SQL sent to the database, including the full, raw query (including the replaced placeholders with their bounded values). Note, that this will only be available if emulated prepared statements are turned on.
 SQLite3::openBlobThe flags parameter has been added, allowing to write BLOBs; formerly only reading was supported.
7.1.5IntlDateFormatter::formatSupport for providing general DateTimeInterface objects to the value parameter was added. Formerly, only proper DateTime objects were supported.
7.1.4PDO::sqliteCreateFunctionThe flags parameter has been added.
 SQLite3::createFunctionThe flags parameter has been added.
7.1.0grapheme_extractSupport for negative starts has been added.
 grapheme_striposSupport for negative offsets has been added.
 grapheme_strposSupport for negative offsets has been added.
 hash_algosSupport for sha512/224, sha512/256, sha3-224, sha3-256, sha3-384 and sha3-512 has been added.
 iconv_strposSupport for negative offsets has been added.
 mb_eregmb_ereg will now set matches to an empty array, if nothing matched. Formerly, matches was not modified in that case.
 mb_ereg_replaceThe e modifier has been deprecated.
 mb_ereg_replaceThe function checks whether string is valid for the current encoding.
 mb_ereg_replace_callbackThe function checks whether string is valid for the current encoding.
 mb_ereg_search_setposSupport for negative offsets has been added.
 mb_eregimb_eregi will now set matches to an empty array, if nothing matched. Formerly, matches was not modified in that case.
 mb_eregi_replaceThe function checks whether string is valid for the current encoding.
 mb_eregi_replaceThe e modifier has been deprecated.
 mb_strimwidthSupport for negative starts and widths has been added.
 mb_striposSupport for negative offsets has been added.
 mb_strposSupport for negative offsets has been added.
 openssl_csr_newconfigargs now also supports curve_name.
 openssl_decryptThe tag and aad parameters were added.
 openssl_encryptThe tag, aad and tag_length parameters were added.
 openssl_pkey_newThe curve_name configarg was added to make it possible to create EC keys.
 pcntl_signalAs of PHP 7.1.0 the handler callback is given a second argument containing the siginfo of the specific signal. This data is only supplied if the operating system has the siginfo_t structure. If the OS does not implement siginfo_t NULL is supplied.
 pcntl_signal_get_handlerpcntl_signal_get_handler has been added.
 substr_countSupport for negative offsets and lengths has been added. length may also be 0 now.
 unserializeThe allowed_classes element of options) is now strictly typed, i.e. if anything other than an array or a bool is given, unserialize returns false and issues an E_WARNING.
 ReflectionType::__toStringReflectionType::__toString has been deprecated.
7.0.11iconv_substrIf string is equal to offset characters long, an empty string will be returned. Prior to this version, false was returned in this case.
7.0.10SQLite3::__constructThe filename can now be empty to use a private, temporary on-disk database.
7.0.7curl_multi_setoptIntroduzido CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE, CURLMOPT_CONTENT_LENGTH_PENALTY_SIZE, CURLMOPT_MAX_HOST_CONNECTIONS, CURLMOPT_MAX_PIPELINE_LENGTH e CURLMOPT_MAX_TOTAL_CONNECTIONS.
 curl_setoptIntroduced CURL_HTTP_VERSION_2, CURL_HTTP_VERSION_2_PRIOR_KNOWLEDGE, CURL_HTTP_VERSION_2TLS, CURL_REDIR_POST_301, CURL_REDIR_POST_302, CURL_REDIR_POST_303, CURL_REDIR_POST_ALL, CURL_VERSION_KERBEROS5, CURL_VERSION_PSL, CURL_VERSION_UNIX_SOCKETS, CURLAUTH_NEGOTIATE, CURLAUTH_NTLM_WB, CURLFTP_CREATE_DIR, CURLFTP_CREATE_DIR_NONE, CURLFTP_CREATE_DIR_RETRY, CURLHEADER_SEPARATE, CURLHEADER_UNIFIED, CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE, CURLMOPT_CONTENT_LENGTH_PENALTY_SIZE, CURLMOPT_MAX_HOST_CONNECTIONS, CURLMOPT_MAX_PIPELINE_LENGTH, CURLMOPT_MAX_TOTAL_CONNECTIONS, CURLOPT_CONNECT_TO, CURLOPT_DEFAULT_PROTOCOL, CURLOPT_DNS_INTERFACE, CURLOPT_DNS_LOCAL_IP4, CURLOPT_DNS_LOCAL_IP6, CURLOPT_EXPECT_100_TIMEOUT_MS, CURLOPT_HEADEROPT, CURLOPT_LOGIN_OPTIONS, CURLOPT_PATH_AS_IS, CURLOPT_PINNEDPUBLICKEY, CURLOPT_PIPEWAIT, CURLOPT_PROXY_SERVICE_NAME, CURLOPT_PROXYHEADER, CURLOPT_SASL_IR, CURLOPT_SERVICE_NAME, CURLOPT_SSL_ENABLE_ALPN, CURLOPT_SSL_ENABLE_NPN, CURLOPT_SSL_FALSESTART, CURLOPT_SSL_VERIFYSTATUS, CURLOPT_STREAM_WEIGHT, CURLOPT_TCP_FASTOPEN, CURLOPT_TFTP_NO_OPTIONS, CURLOPT_UNIX_SOCKET_PATH, CURLOPT_XOAUTH2_BEARER, CURLPROTO_SMB, CURLPROTO_SMBS, CURLPROXY_HTTP_1_0, CURLSSH_AUTH_AGENT and CURLSSLOPT_NO_REVOKE.
7.0.0array_columnAdicionada a habilidade que possibilita o parâmetro input ser um array de objetos.
 dirnameAdicionado o parâmetro opcional levels.
 gmmktimeO parâmetro is_dst foi removido.
 mktimeO parâmetro is_dst foi removido.
 session_regenerate_idsession_regenerate_id salva os dados da sessão antiga antes de encerrar.
 session_startO parâmetro options foi adicionado.
 substrSe string tiver o comprimento de start, uma string vazia será retornada. Antes dessa versão, retornava false nesse caso.
 unserializeThe options parameter has been added.
 IntlDateFormatter::setTimeZoneIdThis function has been removed.
6.0.0fileAdicionado suporte às flags FILE_TEXT e FILE_BINARY.
 file_get_contentsO parâmetro use_include_path foi substituído pelo parâmetro flags.
 file_put_contentsAdicionado suporte às flags FILE_TEXT e FILE_BINARY
5.6.16mysqli::real_connectAdded the MYSQLI_CLIENT_SSL_DONT_VERIFY_SERVER_CERT flag for MySQL Native Driver
5.6.0array_fillnum agora pode ser zero. Anteriormente, num deveria ser maior que zero.
 array_filterAdicionado o parâmetro opcional flag e as contantes ARRAY_FILTER_USE_KEY e ARRAY_FILTER_USE_BOTH
 mb_regex_encodingDefault encoding is changed to UTF-8. It was EUC-JP Previously.
 mcrypt_decryptInvalid key and iv sizes are no longer accepted. mcrypt_decrypt will now throw a warning and return false if the inputs are invalid. Previously keys and IVs were padded with '\0' bytes to the next valid size.
 mcrypt_encryptInvalid key and iv sizes are no longer accepted. mcrypt_encrypt will now throw a warning and return false if the inputs are invalid. Previously keys and IVs were padded with '\0' bytes to the next valid size.
 stream_socket_enable_cryptoIntroduce STREAM_CRYPTO_METHOD_ANY_CLIENT, STREAM_CRYPTO_METHOD_TLSv1_0_CLIENT, STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT, STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT, STREAM_CRYPTO_METHOD_ANY_SERVER, STREAM_CRYPTO_METHOD_TLSv1_0_SERVER, STREAM_CRYPTO_METHOD_TLSv1_1_SERVER, STREAM_CRYPTO_METHOD_TLSv1_2_SERVER.
 stream_socket_enable_cryptoThe crypto_type is now optional.
 unserializeManipulating the serialised data by replacing C: with O: to force object instantiation without calling the constructor will now fail.
 ReflectionClass::newInstanceWithoutConstructorAll internal classes can now be instantiated except for those declared final.
 XMLReader::getAttributeNoXMLReader::getAttributeNo now returns null if the attribute doesn't exist.
 XMLReader::getAttributeNsXMLReader::getAttributeNS now returns null if the attribute doesn't exist.
5.5.8DatePeriod::__constructO tipo de end foi modificado para DateTimeImmutable. Anteriormente era DateTime.
5.5.7apache_request_headersEsta função tornou-se disponível no servidor CLI.
 apache_response_headersEsta função tornou-se disponível no CLI.
 getallheadersEsta função tornou-se disponível no servidor CLI.
5.5.4fputcsvO parâmetro escape_char foi adicionado.
5.5.2DOMDocument::schemaValidateAdded the flags parameter
 DOMDocument::schemaValidateSourceAdded the flags parameter
5.5.1session_set_save_handlerAdicionado o parâmetro opcional create_sid.
5.5.0/PECL 3.0.0IntlDateFormatter::createAn IntlCalendar object is allowed for calendar. Objects of type IntlTimeZone and DateTimeZone are allowed for timezone. Invalid timezone identifiers (including empty strings) are no longer allowed for timezone. If null is given for timezone, the timezone identifier given by date_default_timezone_get will be used instead of ICUʼs default.
 IntlDateFormatter::setCalendarIt became possible to pass an IntlCalendar object.
5.5.0DatePeriod::__constructstart foi modificado para DateTimeImmutable. Anteriormente era DateTime.
 emptyA função empty agora suporta expressões, em vez de somente variáveis.
 json_encodeParâmetro depth foi adicionado.
 IntlDateFormatter::setTimeZoneIdThis function has been deprecated.
 mysqli::rollbackAdded flags and name parameters.
5.4.32, 5.5.16ucwordsO parâmetro delimiters foi adicionado.
5.4.0apache_child_terminateEsta funçõe se tornou disponível no FastCGI. Anteriormente ele só era suportado quando o PHP era instalado como módulo do Apache.
 apache_request_headersEsta função tornou-se disponível no FastCGI. Anteriormente era suportada somente quando o PHP era instalado como módulo Apache ou como um módulo NSAPI nos servidores Netscape/iPlanet/SunONE.
 apache_response_headersEsta função tornou-se disponível no FastCGI. Anteriormente ela só era suportada com o PHP instalado como um módulo do Apache ou como um módulo NSAPI nos servidores Netscape/iPlanet/SunONE.
 array_combineVersões anteriores disparavam E_WARNING e retornavam false para arrays vazios.
 array_multisortSORT_NATURAL e SORT_FLAG_CASE foram adicionados em array1_sort_flags.
 date_default_timezone_getO fuso horário não é mais suposto por informações disponíveis no sistema operacional, já que o fuso horário adivinhado não é confiável.
 date_default_timezone_getA variável de ambiente TZ não é mais utilizada para adivinhar o fuso horário.
 emptyChecar deslocamentos de strings não numéricos retorna true.
 getallheadersEsta função tornou-se disponível no FastCGI. Anteriormente ela era suportada no PHP intalado como módulo do Apache ou como um módulo NSAPI nos servidores Netscape/iPlanet/SunONE.
 json_encodeoptions JSON_PRETTY_PRINT, JSON_UNESCAPED_SLASHES, e JSON_UNESCAPED_UNICODE foram adicionadas.
 session_set_save_handlerAdicionado SessionHandlerInterface para a implementação de manipuladores de sessão e SessionHandler para expor manipuladores de sessão internos do PHP.
 SimpleXMLElement::getDocNamespacesAdicionado o parâmetro from_root.
5.3.15, 5.4.5Collator::getSortKeySort keys do no longer contain any NUL bytes.
5.3.9DateTime::createFromFormatO especificador de format + foi adicionado.
5.3.6DateTime::modifyDeclarações absolutas de data/hora agora possuem efeito. Anteriormente, somente porções relativas eram utilizadas.
 array_productO produto de um array vazio agora é 1, quando antes essa função iria retornar 0 para um array vazio.
 PDO_MYSQL DSNAntes do PHP 5.3.6, o charset era ignorado.
5.3.4copyAlterado o parâmetro context para ele realmente ter algum efeito. Anteriormente, qualquer context era ignorado.
5.3.3json_encodeoption JSON_NUMERIC_CHECK foi adicionada.
5.3.1renamerename agora consegue mover arquivos entre drivers do Windows.
5.3.0DateTime::__constructSe o parâmetro time conter algum formato de data/hora inválida, uma exceção será lançada. Anteriormente, um erro era emitido.
 DateTime::modifyModificado o valor retornado de null para DateTime.
 DateTime::setDateModificado o valor retornado de null para DateTime.
 DateTime::setISODateModificado o valor retornado de null para DateTime.
 DateTime::setTimeModificado o valor retornado de null para DateTime.
 DateTime::setTimezoneModificado o valor retornado de null para DateTime.
 DateTimeZone::getTransitionsOs parâmetros opcionais timestamp_begin e timestamp_end foram adicionados.
 DateTimeZone::listIdentifiersAdicionado os parâmetros opcionais what e country.
 array_multisortSORT_LOCALE_STRING foi adicionado em array1_sort_flags.
 array_reduceinitial modificado para permitir mixed (anteriormente era integer).
 array_searchA partir do PHP 5.3.0 array_search retorna null caso sejam informados parâmetros inválidos.
 copyAdicionado suporte à contexto.
 date_default_timezone_setAgora retorna E_WARNING ao invés de E_STRICT.
 fgetcsvO parâmetro escape foi adicionado
 json_encodeO parâmetro options foi adicionado.
 linkA função fica disponível em plataformas Windows (Vista, Server 2008 or greater).
 mktimemktime agora lançará um aviso E_DEPRECATED se o parâmetro is_dst for utilizado.
 readlinkEsta função fica disponível na plataforma Windows (Vista, Server 2008 e superiores).
 session_startSe uma sessão falhar para iniciar, então é retornado false. Anteriormente, true era retornado.
 stristrAdicionado o parâmetro opcional before_needle.
 strstrAdicionado o parâmetro opcional before_needle.
5.2.10array_randO array retornado não é mais embaralhado.
5.2.5addcslashesAs seqüências de escape \v e \f foram adicionadas.
5.2.4parse_ini_fileChaves e nomes de seção que consistem de números, agora são interpretados como inteiros, de forma que números iniciados por 0 são interpretados como octais e números iniciados por 0x são interpretados como hexadecimais.
5.2.3htmlentitiesO parâmetro double_encode foi adicionado.
 json_decodeO limite de aninhamento foi aumentado de 20 para 128
5.2.2 - 5.2.6substrSe start indicar a posição de truncagem negativa ou além, retorna false. Outras versões retornavam a string a partir do começo.
5.2.0curl_multi_info_readmsgs_in_queue was added.
 pathinfoA constante PATHINFO_FILENAME foi adicionada.
 session_get_cookie_paramsA entrada "httponly" foi adicionada no array retornado.
 session_set_cookie_paramsO parâmetro httponly foi adicionado.
 SimpleXMLElement::childrenO parâmetro opcional is_prefix foi adicionado.
 SimpleXMLElement::__constructAdicionado os parâmetros ns e is_prefix.
5.1.3curl_getinfoIntroduced CURLINFO_HEADER_OUT.
5.1.2date_default_timezone_setA função passou a validar o parâmetro timezone_identifier.
 SimpleXMLElement::__constructAdicionado os parâmetros options e data_is_url.
5.1.1dateHá constantes úteis do padrão de formato de data/hora que podem ser usados para especificar o parâmetro format.
 gmdateHá constantes úteis do padrão de formato data/hora que podem ser usadas para especificar o parâmetro format.
5.1.0dateAgora lança erros E_STRICT e E_NOTICE .
 dateO intervalo válido de um timestamp é tipicamente de Sex, 13 Dez 1901 20:45:54 GMT até Ter, 19 Jan 2038 03:14:07 GMT. (Estas são as datas que correspondem ao valor mínimo e máximo para um inteiro com sinal de 32-bit). Contudo, em versões anteriores ao PHP 5.1.0 este intervalo era limitado de 01-01-1970 para 19-01-2038 em alguns sistemas (e.g. Windows).
 date_sunriseAgora lança erros E_STRICT e E_NOTICE .
 date_sunsetAgora lança erros E_STRICT e E_NOTICE .
 explodeSuporte a limit negativo foi adicionado
 fgetcsvAgora length é opcional. O padrão é 0, que significa sem limite de comprimento.
 file_get_contentsAdicionados os parâmetros offset e maxlen.
 file_put_contentsAdicionado suporte a LOCK_EX e a possibilidade de passar um recurso de stream para o parâmetro data
 gettimeofdayO parâmetro return_float foi adicionado.
 globGLOB_ERR foi adicionado
 gmdateO intervalo válido de um timestamp é normalmente de Fri, 13 Dec 1901 20:45:54 GMT a Tue, 19 Jan 2038 03:14:07 GMT. (Estas são as datas que correspondem aos valores máximo e mínimo para um inteiro 32-bit com sinal). Contudo, antes do PHP 5.1.0 este intervalo foi limitado para 01-01-1970 a 19-01-2038 em alguns sistemas (e.g. Windows).
 gmmktimeA partir do PHP 5.1.0, o parâmetro is_dst foi depreciado. Como resultado, a nova funcionalidade de manipulação de fusos horário deve ser utilizada.
 idateAgora lança erros E_STRICT e E_NOTICE .
 localtimeAgora lança erros E_STRICT e E_NOTICE .
 md5_fileModificada função para usar a API de API. Significa que você pode usá-la com wrappers, como md5_file('http://example.com/..')
 mktimeO parâmetro is_dst tornou-se obsoleto. Fazendo a função retornar false em erro, em vez de -1. Reparada a função para aceitar ano, mês e dia passados como zero.
 mktimeQuando chamada sem argumentos, a função mktime lançará um aviso E_STRICT. Utilize a função time em substituição.
 mktimeAgora lança erros E_STRICT e E_NOTICE .
 strftimeAgora lança erros E_STRICT e E_NOTICE .
5.0.0apache_get_modulesTornou-se disponível usando o Apache 1 ou a API filter do Apache 2 . Antes disso, só estava disponível usando a API handler do Apache2.
 dirnamedirname passou a ser segura para binários
 fgetssO parâmetro length é opcional.
 fileO parâmetro context foi adicionado
 fileAté o PHP 5.0.0, o parâmetro flags suportava apenas include_path e era habilitado com 1
 file_get_contentsAdicionado suporte a contexto.
 file_put_contentsAdicionado suporte a contexto
 get_class_methodsNo PHP 5, esta função retorna o nome dos métodos como eles foram declarados (case-sensitive). No PHP 4 eles ficavam em minúsculo.
 html_entity_decodeSuporte para conjunto de caracteres multi-byte foi adicionado.
 md5O parâmetro raw_output foi adicionado.
 md5_fileAdicionado o parâmetro raw_output
 mkdirA partir do PHP 5.0.0, mkdir também pode ser usada com alguns wrappers de URL. Veja em uma lista de quais wrappers suportam mkdir
 mkdirO parâmetro recursive foi adicionado
 parse_ini_fileValores envolvidos em aspas duplas podem conter novas linhas.
 renamerename pode agora também ser usada com algum URL wrappers. Consulte para uma lista de wrappers que rename suporta.
 rmdirNo PHP 5.0.0 rmdir pode também ser usada com alguns URL wrappers. Consulte para uma listagem de wrappers suportados pela rmdir.
 str_replaceO parâmetro count foi adicionado.
 strip_tagsstrip_tags tornou-se binary safe
 unlinkNo PHP 5.0.0 unlink pode também ser usada com alguns URL wrappers. Consulte para uma listagem de wrappers que são suportados na unlink.
add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top