更新日志

對綁定的擴展的函數(shù)有以下更新。

VersionFunctionDescription
Since 5.0.0get_parent_classThe object parameter is optional if called from the object's method.
Since 5.0cal_info參數(shù)calendar作為可選項,缺省時默認值為"所有歷法"。
Since 4.3.0easter_dateyear參數(shù)可選,缺省的默認值是當年。
 easter_days引入?yún)?shù) method。
 easter_days參數(shù)year 可選,缺省默認值是當年。
Since 4.2.0srandseed 成為可選,省略時會默認使用隨機值。
Since 4.0.5get_parent_classIf object is a string, returns the name of the parent class of the class with that name.
prior to 5.3.0get_object_varsIf the object isn't an object, then get_object_vars would return false
Prior to 5.1.3imagecolorallocatealphaReturns -1 if the allocation failed.
prior to 4.2.0get_object_varsIf the variables declared in the class of which the object is an instance, have not been assigned a value, those will not be returned in the array
PHP 7.0.15, PHP 7.1.1get_defined_functions增加 exclude_disabled 參數(shù)。
PHP 5.3.2 (PECL OCI8 1.4)oci_set_prefetchBefore this release, rows must be >= 1.
PHP 5.3 (PECL OCI8 1.3.4)oci_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 OCI8 3.2oci_set_prefetch_lob
PECL 3.0.0IntlDateFormatter::formatSupport for providing IntlCalendar objects to the datetime parameter was added.
Before 5.1.0get_parent_classIf called without parameter outside object, this function would have returned null with a warning.
8.1.0DirectoryIterator::keyWhen the iterator is uninitialized, an Error is thrown now. Previously, the method returned false.
 DOMDocument::createCommentIn case of an error, a DomException is thrown now. Previously, false was returned.
 DOMDocument::createDocumentFragmentIn case of an error, a DomException is thrown now. Previously, false was returned.
 DOMDocument::createTextNodeIn case of an error, a DomException is thrown now. Previously, false was returned.
 current棄用在 object 上調(diào)用此函數(shù)。 在 object 優(yōu)先使用 get_mangled_object_vars 或者使用 ArrayIterator。
 end棄用在 object 上調(diào)用此函數(shù)。 在 object 優(yōu)先使用 get_mangled_object_vars 或者使用 ArrayIterator。
 html_entity_decodeflags changed from ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401.
 imageopenpolygonThe parameter num_points has been deprecated.
 key棄用在 object 上調(diào)用此函數(shù)。 在 object 優(yōu)先使用 get_mangled_object_vars 或者使用 ArrayIterator。
 ldap_add現(xiàn)在 ldap 參數(shù)接受 LDAP\Connection 實例,之前接受 資源(resource)。
 ldap_add_extReturns an LDAP\Result instance now; previously, a 資源(resource) was returned.
 ldap_add_ext現(xiàn)在 ldap 參數(shù)接受 LDAP\Connection 實例,之前接受 資源(resource)。
 ldap_bind_extReturns an LDAP\Result instance now; previously, a 資源(resource) was returned.
 ldap_bind_ext現(xiàn)在 ldap 參數(shù)接受 LDAP\Connection 實例,之前接受 資源(resource)。
 ldap_compare現(xiàn)在 ldap 參數(shù)接受 LDAP\Connection 實例,之前接受 資源(resource)。
 ldap_connectReturns an LDAP\Connection instance now; previously, a 資源(resource) was returned.
 ldap_count_entries現(xiàn)在 ldap 參數(shù)接受 LDAP\Connection 實例,之前接受 資源(resource)。
 ldap_count_entriesThe result parameter expects an LDAP\Result instance now; previously, a 資源(resource) was expected.
 ldap_count_referencesThe result parameter expects an LDAP\Result instance now; previously, a 資源(resource) was expected.
 ldap_count_references現(xiàn)在 ldap 參數(shù)接受 LDAP\Connection 實例,之前接受 資源(resource)。
 ldap_delete現(xiàn)在 ldap 參數(shù)接受 LDAP\Connection 實例,之前接受 資源(resource)。
 ldap_delete_extReturns an LDAP\Result instance now; previously, a 資源(resource) was returned.
 ldap_delete_ext現(xiàn)在 ldap 參數(shù)接受 LDAP\Connection 實例,之前接受 資源(resource)。
 ldap_errno現(xiàn)在 ldap 參數(shù)接受 LDAP\Connection 實例,之前接受 資源(resource)。
 ldap_error現(xiàn)在 ldap 參數(shù)接受 LDAP\Connection 實例,之前接受 資源(resource)。
 ldap_exop現(xiàn)在 ldap 參數(shù)接受 LDAP\Connection 實例,之前接受 資源(resource)。
 ldap_exop_passwd現(xiàn)在 ldap 參數(shù)接受 LDAP\Connection 實例,之前接受 資源(resource)。
 ldap_exop_refresh現(xiàn)在 ldap 參數(shù)接受 LDAP\Connection 實例,之前接受 資源(resource)。
 ldap_exop_whoami現(xiàn)在 ldap 參數(shù)接受 LDAP\Connection 實例,之前接受 資源(resource)。
 ldap_first_attribute現(xiàn)在 ldap 參數(shù)接受 LDAP\Connection 實例,之前接受 資源(resource)。
 ldap_first_attributeThe entry parameter expects an LDAP\ResultEntry instance now; previously, a 資源(resource) was expected.
 ldap_first_entry現(xiàn)在 ldap 參數(shù)接受 LDAP\Connection 實例,之前接受 資源(resource)。
 ldap_first_entryThe result parameter expects an LDAP\Result instance now; previously, a 資源(resource) was expected.
 ldap_first_entryReturns an LDAP\ResultEntry instance now; previously, a 資源(resource) was returned.
 ldap_free_resultThe result parameter expects an LDAP\Result instance now; previously, a 資源(resource) was expected.
 ldap_get_attributes現(xiàn)在 ldap 參數(shù)接受 LDAP\Connection 實例,之前接受 資源(resource)。
 ldap_get_attributesThe entry parameter expects an LDAP\ResultEntry instance now; previously, a 資源(resource) was expected.
 ldap_get_dn現(xiàn)在 ldap 參數(shù)接受 LDAP\Connection 實例,之前接受 資源(resource)。
 ldap_get_dnThe entry parameter expects an LDAP\ResultEntry instance now; previously, a 資源(resource) was expected.
 ldap_get_entries現(xiàn)在 ldap 參數(shù)接受 LDAP\Connection 實例,之前接受 資源(resource)。
 ldap_get_entriesThe result parameter expects an LDAP\Result instance now; previously, a 資源(resource) was expected.
 ldap_get_option現(xiàn)在 ldap 參數(shù)接受 LDAP\Connection 實例,之前接受 資源(resource)。
 ldap_get_values現(xiàn)在 ldap 參數(shù)接受 LDAP\Connection 實例,之前接受 資源(resource)。
 ldap_get_valuesThe entry parameter expects an LDAP\ResultEntry instance now; previously, a 資源(resource) was expected.
 ldap_get_values_lenThe entry parameter expects an LDAP\ResultEntry instance now; previously, a 資源(resource) was expected.
 ldap_get_values_len現(xiàn)在 ldap 參數(shù)接受 LDAP\Connection 實例,之前接受 資源(resource)。
 ldap_list現(xiàn)在 ldap 參數(shù)接受 LDAP\Connection 實例,之前接受 資源(resource)。
 ldap_listReturns an LDAP\Result instance now; previously, a 資源(resource) was returned.
 ldap_mod_add現(xiàn)在 ldap 參數(shù)接受 LDAP\Connection 實例,之前接受 資源(resource)。
 ldap_mod_del現(xiàn)在 ldap 參數(shù)接受 LDAP\Connection 實例,之前接受 資源(resource)。
 ldap_mod_replace現(xiàn)在 ldap 參數(shù)接受 LDAP\Connection 實例,之前接受 資源(resource)。
 ldap_modify_batch現(xiàn)在 ldap 參數(shù)接受 LDAP\Connection 實例,之前接受 資源(resource)。
 ldap_mod_add_extReturns an LDAP\Result instance now; previously, a 資源(resource) was returned.
 ldap_mod_add_ext現(xiàn)在 ldap 參數(shù)接受 LDAP\Connection 實例,之前接受 資源(resource)。
 ldap_mod_del_ext現(xiàn)在 ldap 參數(shù)接受 LDAP\Connection 實例,之前接受 資源(resource)。
 ldap_mod_del_extReturns an LDAP\Result instance now; previously, a 資源(resource) was returned.
 ldap_mod_replace_ext現(xiàn)在 ldap 參數(shù)接受 LDAP\Connection 實例,之前接受 資源(resource)。
 ldap_mod_replace_extReturns an LDAP\Result instance now; previously, a 資源(resource) was returned.
 ldap_next_attributeThe entry parameter expects an LDAP\ResultEntry instance now; previously, a 資源(resource) was expected.
 ldap_next_attribute現(xiàn)在 ldap 參數(shù)接受 LDAP\Connection 實例,之前接受 資源(resource)。
 ldap_next_entryThe entry parameter expects an LDAP\ResultEntry instance now; previously, a 資源(resource) was expected.
 ldap_next_entryReturns an LDAP\Result instance now; previously, a 資源(resource) was returned.
 ldap_next_entry現(xiàn)在 ldap 參數(shù)接受 LDAP\Connection 實例,之前接受 資源(resource)。
 ldap_parse_exop現(xiàn)在 ldap 參數(shù)接受 LDAP\Connection 實例,之前接受 資源(resource)。
 ldap_parse_exopThe result parameter expects an LDAP\Result instance now; previously, a 資源(resource) was expected.
 ldap_parse_result現(xiàn)在 ldap 參數(shù)接受 LDAP\Connection 實例,之前接受 資源(resource)。
 ldap_parse_resultThe result parameter expects an LDAP\Result instance now; previously, a 資源(resource) was expected.
 ldap_readReturns an LDAP\Result instance now; previously, a 資源(resource) was returned.
 ldap_read現(xiàn)在 ldap 參數(shù)接受 LDAP\Connection 實例,之前接受 資源(resource)。
 ldap_rename現(xiàn)在 ldap 參數(shù)接受 LDAP\Connection 實例,之前接受 資源(resource)。
 ldap_rename_extReturns an LDAP\Result instance now; previously, a 資源(resource) was returned.
 ldap_rename_ext現(xiàn)在 ldap 參數(shù)接受 LDAP\Connection 實例,之前接受 資源(resource)。
 ldap_sasl_bind現(xiàn)在 ldap 參數(shù)接受 LDAP\Connection 實例,之前接受 資源(resource)。
 ldap_searchReturns an LDAP\Result instance now; previously, a 資源(resource) was returned.
 ldap_search現(xiàn)在 ldap 參數(shù)接受 LDAP\Connection 實例,之前接受 資源(resource)。
 ldap_set_option現(xiàn)在 ldap 參數(shù)接受 LDAP\Connection 實例,之前接受 資源(resource)。
 ldap_set_rebind_proc現(xiàn)在 ldap 參數(shù)接受 LDAP\Connection 實例,之前接受 資源(resource)。
 ldap_unbind現(xiàn)在 ldap 參數(shù)接受 LDAP\Connection 實例,之前接受 資源(resource)。
 mhashThis function has been deprecated. Use the hash_*() functions instead.
 mhash_countThis function has been deprecated. Use the hash_*() functions instead.
 mhash_get_block_sizeThis function has been deprecated. Use the hash_*() functions instead.
 mhash_get_hash_nameThis function has been deprecated. Use the hash_*() functions instead.
 mhash_keygen_s2kThis function has been deprecated. Use the hash_*() functions instead.
 next棄用在 object 上調(diào)用此函數(shù)。 在 object 優(yōu)先使用 get_mangled_object_vars 或者使用 ArrayIterator。
 odbc_result_allThis function has been deprecated.
 openssl_cms_encryptThe default cipher algorithm (cipher_algo) is now AES-128-CBC (OPENSSL_CIPHER_AES_128_CBC). Previously, PKCS7/CMS was used (OPENSSL_CIPHER_RC2_40).
 pg_consume_input現(xiàn)在 connection 參數(shù)接受 PgSql\Connection 實例,之前接受 資源(resource)。
 pg_escape_identifier現(xiàn)在 connection 參數(shù)接受 PgSql\Connection 實例,之前接受 資源(resource)。
 pg_escape_literal現(xiàn)在 connection 參數(shù)接受 PgSql\Connection 實例,之前接受 資源(resource)。
 pg_execute現(xiàn)在返回 PgSql\Result 實例,之前返回 資源(resource)
 pg_execute現(xiàn)在 connection 參數(shù)接受 PgSql\Connection 實例,之前接受 資源(resource)。
 pg_fetch_all_columns現(xiàn)在 result 參數(shù)接受 PgSql\Result 實例,之前接受 資源(resource)。
 pg_field_table現(xiàn)在 result 參數(shù)接受 PgSql\Result 實例,之前接受 資源(resource)。
 pg_field_type_oid現(xiàn)在 result 參數(shù)接受 PgSql\Result 實例,之前接受 資源(resource)。
 pg_lo_truncate現(xiàn)在 lob 接受 PgSql\Lob 實例,之前接受 資源(resource)。
 pg_parameter_status現(xiàn)在 connection 參數(shù)接受 PgSql\Connection 實例,之前接受 資源(resource)。
 pg_prepare現(xiàn)在 connection 參數(shù)接受 PgSql\Connection 實例,之前接受 資源(resource)。
 pg_prepare現(xiàn)在返回 PgSql\Result 實例,之前返回 資源(resource)
 pg_query_params現(xiàn)在 connection 參數(shù)接受 PgSql\Connection 實例,之前接受 資源(resource)。
 pg_query_params現(xiàn)在返回 PgSql\Result 實例,之前返回 資源(resource)
 pg_result_error_field現(xiàn)在 result 參數(shù)接受 PgSql\Result 實例,之前接受 資源(resource)。
 pg_send_execute現(xiàn)在 connection 參數(shù)接受 PgSql\Connection 實例,之前接受 資源(resource)。
 pg_send_prepare現(xiàn)在 connection 參數(shù)接受 PgSql\Connection 實例,之前接受 資源(resource)。
 pg_send_query_params現(xiàn)在 connection 參數(shù)接受 PgSql\Connection 實例,之前接受 資源(resource)。
 pg_set_error_verbosity現(xiàn)在 connection 參數(shù)接受 PgSql\Connection 實例,之前接受 資源(resource)。
 pg_socket現(xiàn)在 connection 參數(shù)接受 PgSql\Connection 實例,之前接受 資源(resource)。
 pg_transaction_status現(xiàn)在 connection 參數(shù)接受 PgSql\Connection 實例,之前接受 資源(resource)。
 pg_version現(xiàn)在 connection 參數(shù)接受 PgSql\Connection 實例,之前接受 資源(resource)。
 prev棄用在 object 上調(diào)用此函數(shù)。 在 object 優(yōu)先使用 get_mangled_object_vars 或者使用 ArrayIterator。
 pspell_add_to_personalThe dictionary parameter expects an PSpell\Dictionary instance now; previously, a 資源(resource) was expected.
 pspell_add_to_sessionThe dictionary parameter expects an PSpell\Dictionary instance now; previously, a 資源(resource) was expected.
 pspell_checkThe dictionary parameter expects an PSpell\Dictionary instance now; previously, a 資源(resource) was expected.
 pspell_clear_sessionThe dictionary parameter expects an PSpell\Dictionary instance now; previously, a 資源(resource) was expected.
 pspell_config_createReturns an PSpell\Config instance now; previously, a 資源(resource) was returned.
 pspell_config_data_dirThe config parameter expects an PSpell\Config instance now; previously, a 資源(resource) was expected.
 pspell_config_dict_dirThe config parameter expects an PSpell\Config instance now; previously, a 資源(resource) was expected.
 pspell_config_ignoreThe config parameter expects an PSpell\Config instance now; previously, a 資源(resource) was expected.
 pspell_config_modeThe config parameter expects an PSpell\Config instance now; previously, a 資源(resource) was expected.
 pspell_config_personalThe config parameter expects an PSpell\Config instance now; previously, a 資源(resource) was expected.
 pspell_config_replThe config parameter expects an PSpell\Config instance now; previously, a 資源(resource) was expected.
 pspell_config_runtogetherThe config parameter expects an PSpell\Config instance now; previously, a 資源(resource) was expected.
 pspell_config_save_replThe config parameter expects an PSpell\Config instance now; previously, a 資源(resource) was expected.
 pspell_newReturns an PSpell\Dictionary instance now; previously, a 資源(resource) was returned.
 pspell_new_configThe config parameter expects an PSpell\Config instance now; previously, a 資源(resource) was expected.
 pspell_new_configReturns an PSpell\Dictionary instance now; previously, a 資源(resource) was returned.
 pspell_new_personalReturns an PSpell\Dictionary instance now; previously, a 資源(resource) was returned.
 pspell_save_wordlistThe dictionary parameter expects an PSpell\Dictionary instance now; previously, a 資源(resource) was expected.
 pspell_store_replacementThe dictionary parameter expects an PSpell\Dictionary instance now; previously, a 資源(resource) was expected.
 pspell_suggestThe dictionary parameter expects an PSpell\Dictionary instance now; previously, a 資源(resource) was expected.
 reset棄用在 object 上調(diào)用此函數(shù)。 在 object 優(yōu)先使用 get_mangled_object_vars 或者使用 ArrayIterator。
 stream_selectmicroseconds is now nullable.
 MultipleIterator::currentA RuntimeException is now thrown if MultipleIterator::current is called on an invalid iterator. Previously, false was returned.
 MultipleIterator::keyA RuntimeException is now thrown if MultipleIterator::key is called on an invalid iterator. Previously, false was returned.
 Phar::buildFromDirectoryPhar::buildFromDirectory no longer returns false.
 Phar::buildFromIteratorPhar::buildFromIterator no longer returns false.
 PharData::buildFromDirectoryPharData::buildFromDirectory no longer returns false.
 PharData::buildFromIteratorPharData::buildFromIterator no longer returns false.
 ReflectionClassConstant::getNameThrows an Error in case the name property has not been initialized. Previously, the method returned false on failure.
 ReflectionParameter::__cloneThis method is no longer final.
 ReflectionProperty::__cloneThis method is no longer final.
 ReflectionZendExtension::__cloneThis method is no longer final.
 SplFileObject::fputcsvThe optional eol parameter has been added.
 SplObjectStorage::currentSplObjectStorage::current now throws an Error exception if the current position is invalid. Previously, false was returned instead.
8.0.3DOMDocument::getElementsByTagNameNSnamespace is nullable now.
 DOMElement::getElementsByTagNameNSnamespace is nullable now.
 DOMImplementation::createDocumentnamespace is now nullable.
 finfo::__constructmagic_database is nullable now.
 bind_textdomain_codesetcodeset is nullable now. Previously, it was not possible to retrieve the currently set encoding.
 bindtextdomaindirectory is nullable now. Previously, it was not possible to retrieve the currently set directory.
 SoapClient::__setLocationlocation is nullable now.
 SoapVar::__constructtypeName, typeNamespace, nodeName,and nodeNamespace are nullable now.
8.0.0, PECL OCI8 3.0.0oci_lob_copylength is now nullable.
 OCICollection::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::eraseoffset and length are now nullable.
 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::exportoffset and length are now nullable.
 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::writelength is now nullable.
 OCILob::writeTemporaryThe 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.
 OCILob::writeToFileoffset and length are now nullable.
8.0.0DateInterval::__constructW can be combined with D.
 DateTime::formatPrior to this version, false was returned on failure.
 DateTime::formatThe format character p has been added.
 DateTime::getOffsetPrior to this version, false was returned on failure.
 DateTime::getTimestampThese functions no longer return false on failure.
 DirectoryIterator::__constructNow throws a ValueError if directory is an empty string; previously it threw a RuntimeException.
 DOMImplementation::createDocumentdoctype is now nullable.
 FFI::cdeflib is nullable now.
 FFI::stringsize is nullable now; previously, its default was 0.
 FilesystemIterator::__constructNow throws a ValueError if directory is an empty string; previously it threw a RuntimeException.
 apache_note現(xiàn)在 note_value 可為 null。
 array_columnindex_key 參數(shù)指定的列中的對象不再強制轉(zhuǎn)換為字符串,而是會拋出 TypeError。
 array_filter如果 callback 接受引用傳遞參數(shù),該方法將會拋出 E_WARNING。
 array_filtercallback 現(xiàn)在可為空(nullable)。
 array_map如果 callback 接受引用傳遞參數(shù),該方法將會拋出 E_WARNING。
 array_reduce如果 callback 接受引用傳遞參數(shù),該方法將會拋出 E_WARNING。
 array_splicelength 現(xiàn)在可為空(nullable)。
 array_walk如果 callback 期待通過引用傳遞第二個和第三個參數(shù), 此函數(shù)現(xiàn)在將拋出 E_WARNING。
 bcadd現(xiàn)在 scale 可以為 null。
 bccomp現(xiàn)在 scale 可以為 null。
 bcdiv現(xiàn)在 scale 可以為 null。
 bcmod現(xiàn)在 scale 可以為 null。
 bcmul現(xiàn)在 scale 可以為 null。
 bcpowmodscale is now nullable.
 bcscale現(xiàn)在 scale 可以為 null。
 bcsqrt現(xiàn)在 scale 可以為 null。
 bcsub現(xiàn)在 scale 可以為 null。
 bzdecompressuse_less_memory 的類型從 int 變?yōu)?bool。 之前默認值為 0。
 bzwritelength 現(xiàn)在可為空(nullable)。
 com_event_sinksink_interface is nullable now.
 com_get_active_objectcodepage is nullable now.
 count當 value 參數(shù)傳入了無效的 countable 類型, count 現(xiàn)在會拋出 TypeError。
 deflate_addcontext expects a DeflateContext instance now; previously, a resource was expected.
 deflate_initOn success, this function returns a DeflateContext instance now; previously, a resource was returned.
 dircontext 現(xiàn)在可為空(nullable)。
 dom_import_simplexmlThis function no longer returns null on failure.
 enchant_broker_describePrior to this version, the function returned false on failure.
 enchant_broker_describebroker expects an EnchantBroker instance now; previoulsy, a 資源(resource) was expected.
 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_dictsbroker expects an EnchantBroker instance now; previoulsy, a 資源(resource) was expected.
 enchant_broker_list_dictsPrior to this version, the function returned false on failure.
 enchant_broker_request_dictOn success, this function returns an EnchantDictionary instance now; previoulsy, a 資源(resource) was retured.
 enchant_broker_request_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_request_pwl_dictbroker expects an EnchantBroker instance now; previoulsy, a 資源(resource) was expected.
 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_adddictionary 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_addeddictionary 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.
 exif_read_datarequired_sections 現(xiàn)在可以為空。
 get_resourcestype is nullable now.
 gmp_binomialThis function no longer returns false on failure.
 gmp_exportThis function no longer returns false on failure.
 gmp_importThis function no longer returns false on failure.
 gzgetslength is nullable now; previously, the default was 1024.
 gzwritelength is nullable now; previously, the default was 0.
 html_entity_decodeencoding is nullable now.
 iconv_strposencoding is nullable now.
 iconv_strrposencoding is nullable now.
 imagebmpimage expects a GdImage instance now; previously, a resource was expected.
 imagebmpThe type of compressed is bool now; formerly it was int.
 imagecreatefrombmpOn success, this function returns a GDImage instance now; previously, a resource was returned.
 imagecreatefromtgaOn success, this function returns a GDImage instance now; previously, a 資源(resource) was returned.
 imagecropimage expects a GdImage instance now; previously, a resource was expected.
 imagecropOn success, this function returns a GDImage instance now; previously, a resource was returned.
 imagecropautoOn success, this function returns a GDImage instance now; previously, a resource was returned.
 imagecropautoimage expects a GdImage instance now; previously, a resource was expected.
 imageflipimage expects a GdImage instance now; previously, a resource was expected.
 imagegetclipimage expects a GdImage instance now; previously, a resource was expected.
 imagegetinterpolationimage expects a GdImage instance now; previously, a resource was expected.
 imagegrabscreenOn success, this function returns a GDImage instance now; previously, a resource was returned.
 imagegrabwindowclient_area expects a bool now; previously it expected an int.
 imagegrabwindowOn success, this function returns a GDImage instance now; previously, a resource was returned.
 imageopenpolygonimage expects a GdImage instance now; previously, a resource was expected.
 imagepalettetotruecolorimage expects a GdImage instance now; previously, a resource was expected.
 imageresolutionresolution_x and resolution_y are now nullable.
 imagescaleOn success, this function returns a GDImage instance now; previously, a resource was returned.
 imagescaleimage expects a GdImage instance now; previously, a resource was expected.
 imagesetclipimage expects a GdImage instance now; previously, a resource was expected.
 imagesetinterpolationimage expects a GdImage instance now; previously, a resource was expected.
 implode在 array 之后傳遞 separator 已不再支持。
 inflate_addcontext expects an InflateContext instance now; previously, a resource was expected.
 inflate_get_read_lencontext expects an InflateContext instance now; previously, a resource was expected.
 inflate_get_statuscontext expects an InflateContext instance now; previously, a resource was expected.
 inflate_initOn success, this function returns an InflateContext instance now; previously, a resource was returned.
 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_control_paged_resultThis function has been removed.
 ldap_control_paged_result_responseThis function has been removed.
 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.
 ldap_sortThis function has been removed.
 libxml_use_internal_errorsuse_errors is nullable now. Previously, its default was false.
 mb_chr現(xiàn)在 encoding 可以為 null。
 mb_convert_encoding現(xiàn)在,當 to_encoding 為無效編碼時, mb_convert_encoding 會拋出 ValueError。
 mb_convert_encoding現(xiàn)在 from_encoding 可以傳入 null。
 mb_convert_encoding現(xiàn)在,當 from_encoding 為無效編碼時, mb_convert_encoding 會拋出 ValueError。
 mb_convert_kana現(xiàn)在 encoding 可以為 null。
 mb_encode_mimeheadercharset 和 transfer_encoding 現(xiàn)在可以為空。
 mb_encode_numericentity現(xiàn)在 encoding 可以為 null。
 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_get_info參數(shù) type 中的 "func_overload" 和 "func_overload_list" 不再被支持。
 mb_ord現(xiàn)在 encoding 可以為 null。
 mb_regex_encoding現(xiàn)在 encoding 可以為 null。
 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_scrub現(xiàn)在 encoding 可以為 null。
 mb_str_splitThis function no longer returns false on failure.
 mb_str_split現(xiàn)在 encoding 可以為 null。
 metaphoneThe function returned false on failure.
 mhashkey is now nullable.
 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.
 odbc_columnsschema, table and column are now nullable.
 odbc_errorodbc is nullable now.
 odbc_errormsgodbc is nullable now.
 odbc_execflags was removed.
 odbc_fetch_rowrow is nullable now.
 odbc_procedurecolumnsPrior to this version, the function could only be called with either one or five arguments.
 odbc_proceduresPrior to this version, the function could only be called with either one or four arguments.
 odbc_tablesschema, table and types are now nullable.
 openssl_pkey_new成功時此函數(shù)會返回 OpenSSLAsymmetricKey 的實例;在之前版本中,則會返回類似為 OpenSSL key 的 資源(resource)。
 openssl_signprivate_key accepts an OpenSSLAsymmetricKey or OpenSSLCertificate instance now; previously, a 資源(resource) of type OpenSSL key or OpenSSL X.509 was accepted.
 openssl_x509_verifycertificate accepts an OpenSSLCertificate instance now; previously, a 資源(resource) of type OpenSSL X.509 was accepted.
 openssl_x509_verifypublic_key accepts an OpenSSLAsymmetricKey or OpenSSLCertificate instance now; previously, a 資源(resource) of type OpenSSL key or OpenSSL X.509 was accepted.
 pack此函數(shù)不再在失敗時返回 false 。
 parse_strresult 是必須項。
 password_hash參數(shù) algo 可以為 null。
 password_hash失敗時 password_hash 不再返回 false。
 pg_versionconnection is now nullable.
 sapi_windows_vt100_supportenable is now nullable.
 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_attachsize is nullable now.
 shm_attachOn success, this function returns an SysvSharedMemory instance now; previously, a resource was returned.
 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.
 shmop_closeshmop expects a Shmop instance now; previously, a resource was expected.
 shmop_deleteshmop expects a Shmop instance now; previously, a resource was expected.
 shmop_openOn success, this function returns an Shmop instance now; previously, a resource was returned.
 shmop_readshmop expects a Shmop instance now; previously, a resource was expected.
 shmop_sizeshmop expects a Shmop instance now; previously, a resource was expected.
 shmop_writePrior to PHP 8.0.0, false was returned on failure.
 shmop_writeshmop expects a Shmop instance now; previously, a resource was expected.
 socket_accept成功時,該函數(shù)現(xiàn)在返回一個 Socket 實例;在此之前,返回值是一個 resource。
 socket_addrinfo_bindOn success, this function returns a Socket instance now; previously, a resource was returned.
 socket_addrinfo_bind現(xiàn)在 address 是 AddressInfo 實例, 之前是 resource。
 socket_addrinfo_connect現(xiàn)在 address 是 AddressInfo 實例, 之前是 resource。
 socket_addrinfo_connectOn success, this function returns a Socket instance now; previously, a resource was returned.
 socket_addrinfo_explain現(xiàn)在 address 是 AddressInfo 實例, 之前是 resource。
 socket_addrinfo_lookupservice is nullable now.
 socket_addrinfo_lookupOn success, this function returns a array of AddressInfo instances now; previously, an array of resources was returned.
 socket_bind現(xiàn)在 socket 是 Socket 實例, 之前是 resource。
 socket_clear_error參數(shù) socket 可以為 null。
 socket_clear_error現(xiàn)在 socket 是 Socket 實例, 之前是 resource。
 socket_close現(xiàn)在 socket 是 Socket 實例, 之前是 resource。
 socket_connect現(xiàn)在 socket 是 Socket 實例, 之前是 resource。
 socket_connectport 允許為空。
 socket_create創(chuàng)建成功時,該函數(shù)現(xiàn)在返回一個 Socket 實例; 在此之前,返回的是一個 resource。
 socket_create_listenOn success, this function returns a Socket instance now; previously, a resource was returned.
 socket_create_pairpair is a reference to an array of Socket instances now; previously, it was a reference to an array of resources.
 socket_export_stream現(xiàn)在 socket 是 Socket 實例, 之前是 resource。
 socket_get_option現(xiàn)在 socket 是 Socket 實例, 之前是 resource。
 socket_getpeername現(xiàn)在 socket 是 Socket 實例, 之前是 resource。
 socket_getsockname現(xiàn)在 socket 是 Socket 實例, 之前是 resource。
 socket_import_streamOn success, this function returns a Socket instance now; previously, a resource was returned.
 socket_last_errorsocket is nullable now.
 socket_last_error現(xiàn)在 socket 是 Socket 實例, 之前是 resource。
 socket_listen現(xiàn)在 socket 是 Socket 實例, 之前是 resource。
 socket_read現(xiàn)在 socket 是 Socket 實例, 之前是 resource。
 socket_recv現(xiàn)在 socket 是 Socket 實例, 之前是 resource。
 socket_recvfrom現(xiàn)在 socket 是 Socket 實例, 之前是 resource。
 socket_recvmsg現(xiàn)在 socket 是 Socket 實例, 之前是 resource。
 socket_send現(xiàn)在 socket 是 Socket 實例, 之前是 resource。
 socket_sendmsg現(xiàn)在 socket 是 Socket 實例, 之前是 resource。
 socket_sendto現(xiàn)在 socket 是 Socket 實例, 之前是 resource。
 socket_sendtoport is nullable now.
 socket_set_block現(xiàn)在 socket 是 Socket 實例, 之前是 resource。
 socket_set_nonblock現(xiàn)在 socket 是 Socket 實例, 之前是 resource。
 socket_set_option現(xiàn)在 socket 是 Socket 實例, 之前是 resource。
 socket_shutdown現(xiàn)在 socket 是 Socket 實例, 之前是 resource。
 socket_writelength is nullable now.
 socket_write現(xiàn)在 socket 是 Socket 實例, 之前是 resource。
 socket_wsaprotocol_info_export現(xiàn)在 socket 是 Socket 實例, 之前是 resource。
 socket_wsaprotocol_info_importOn success, this function returns a Socket instance now; previously, a resource was returned.
 soundexPrior to this version, calling the function with an empty string returned false for no particular reason.
 sprintf此函數(shù)失敗時不再返回 false 。
 str_word_countcharacters 可為空(Nullable)類型。
 stream_context_create現(xiàn)在 options 和 params 可以為 null。
 stream_context_get_defaultoptions is now nullable.
 stream_copy_to_streamlength is now nullable.
 stream_get_contents現(xiàn)在 length 可以為 null。
 stream_socket_accept現(xiàn)在 timeout 可以為 null。
 stream_socket_clienttimeout and context are now nullable.
 stream_socket_enable_cryptosession_stream is now nullable.
 stream_socket_servercontext is nullable now.
 substr函數(shù)將返回一個空字符串, 在此之前返回 false 。
 substr現(xiàn)在 length 允許為 null。
 substr_countlength 可以為空(nullable)。
 touchmtime 和 atime 現(xiàn)在可以為空。
 uasort如果 callback 接受引用傳遞參數(shù),該方法將會拋出 E_WARNING。
 uksort如果 callback 接受引用傳遞參數(shù),該方法將會拋出 E_WARNING。
 usort如果 callback 接受引用傳遞參數(shù),該方法將會拋出 E_WARNING。
 vsprintf此函數(shù)失敗時不再返回 false 。
 GlobIterator::__constructNow throws a ValueError if directory is an empty string; previously it threw a RuntimeException.
 IntlTimeZone::getIDForWindowsIDregion is now nullable.
 LimitIterator::__constructNow throws a ValueError if limit is less than -1; previously it threw a RuntimeException.
 LimitIterator::__constructNow throws a ValueError if offset is less than 0; previously it threw a RuntimeException.
 Locale::getDisplayLanguagedisplayLocale is nullable now.
 Locale::getDisplayNamedisplayLocale is nullable now.
 Locale::getDisplayRegiondisplayLocale is nullable now.
 Locale::getDisplayScriptdisplayLocale is nullable now.
 Locale::getDisplayVariantdisplayLocale is nullable now.
 NumberFormatter::createpattern is nullable now.
 Phar::addFilelocalName 現(xiàn)在可以為空。
 Phar::buildFromIteratorbaseDirectory is now nullable.
 Phar::compressextension is now nullable.
 Phar::convertToDataformat, compression, and extension are now nullable.
 Phar::convertToExecutableformat, compression, and localName are now nullable.
 Phar::createDefaultStubindex and webIndex are now nullable.
 Phar::decompressextension is now nullable.
 Phar::getMetadataThe parameter unserializeOptions has been added.
 Phar::setDefaultStubwebIndex is nullable now.
 Phar::setSignatureAlgorithmprivateKey is now nullable.
 Phar::webPharfileNotFoundScript, mimeTypes and rewrite are nullable now.
 PharData::addFilelocalName is now nullable.
 PharData::buildFromIteratorbaseDirectory is now nullable.
 PharData::compressextension is now nullable.
 PharData::convertToDataformat, compression, and extension are now nullable.
 PharData::convertToExecutableformat, compression, and localName are now nullable.
 PharData::decompressextension is now nullable.
 PharData::setDefaultStubwebIndex is nullable now.
 PharData::setSignatureAlgorithmprivateKey is now nullable.
 PharFileInfo::getMetadataThe parameter unserializeOptions has been added.
 PharFileInfo::isCompressedcompression is now nullable.
 RecursiveDirectoryIterator::__constructNow throws a ValueError if directory is an empty string; previously it threw a RuntimeException.
 RecursiveIteratorIterator::getSubIteratorlevel is now nullable.
 ReflectionClass::getConstants添加 filter 。
 ReflectionClass::getReflectionConstantsfilter has been added.
 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.
 ReflectionProperty::getValueobject is nullable now.
 ReflectionProperty::isInitializedobject is nullable now.
 SimpleXMLElement::asXMLfilename is nullable now.
 SoapClient::__doRequestThe type of oneWay is bool now; formerly it was int.
 SoapClient::__setCookievalue is now nullable.
 SoapServer::handlerequest is now nullable.
 SplFileInfo::getFileInfoclass is now nullable.
 SplFileInfo::getPathInfoclass is now nullable.
 SplFileInfo::openFilecontext is now nullable.
 SplFixedArray::__constructNow throws a ValueError if size is a negative; previously it threw a InvalidArgumentException.
 tidy::__constructfilename, config, encoding and useIncludePath are nullable now.
 tidy::parseFileconfig and encoding are nullable now.
 tidy::parseStringconfig and encoding are nullable now.
 tidy::repairFileconfig and encoding are nullable now.
 tidy::repairFiletidy::repairFile is a static method now.
 tidy::repairStringThis function no longer accepts the useIncludePath parameter.
 tidy::repairStringconfig and encoding are nullable now.
 tidy::repairStringtidy::repairString is a static method now.
 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.
 XMLWriter::endAttribute現(xiàn)在 writer 需要 XMLWriter 實例, 之前需要的是 resource。
 XMLWriter::endCdata現(xiàn)在 writer 需要 XMLWriter 實例, 之前需要的是 resource。
 XMLWriter::endComment現(xiàn)在 writer 需要 XMLWriter 實例, 之前需要的是 resource。
 XMLWriter::endDocument現(xiàn)在 writer 需要 XMLWriter 實例, 之前需要的是 resource。
 XMLWriter::endDtd現(xiàn)在 writer 需要 XMLWriter 實例, 之前需要的是 resource。
 XMLWriter::endDtdAttlist現(xiàn)在 writer 需要 XMLWriter 實例, 之前需要的是 resource。
 XMLWriter::endDtdElement現(xiàn)在 writer 需要 XMLWriter 實例, 之前需要的是 resource。
 XMLWriter::endDtdEntity現(xiàn)在 writer 需要 XMLWriter 實例, 之前需要的是 resource。
 XMLWriter::endElement現(xiàn)在 writer 需要 XMLWriter 實例, 之前需要的是 resource。
 XMLWriter::endPi現(xiàn)在 writer 需要 XMLWriter 實例, 之前需要的是 resource。
 XMLWriter::flush現(xiàn)在 writer 需要 XMLWriter 實例, 之前需要的是 resource。
 XMLWriter::flushThis function can no longer return false.
 XMLWriter::fullEndElement現(xiàn)在 writer 需要 XMLWriter 實例, 之前需要的是 resource。
 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::outputMemory現(xiàn)在 writer 需要 XMLWriter 實例, 之前需要的是 resource。
 XMLWriter::setIndent現(xiàn)在 writer 需要 XMLWriter 實例, 之前需要的是 resource。
 XMLWriter::setIndentString現(xiàn)在 writer 需要 XMLWriter 實例, 之前需要的是 resource。
 XMLWriter::startAttribute現(xiàn)在 writer 需要 XMLWriter 實例, 之前需要的是 resource。
 XMLWriter::startAttributeNsprefix is nullable now.
 XMLWriter::startAttributeNs現(xiàn)在 writer 需要 XMLWriter 實例, 之前需要的是 resource。
 XMLWriter::startCdata現(xiàn)在 writer 需要 XMLWriter 實例, 之前需要的是 resource。
 XMLWriter::startComment現(xiàn)在 writer 需要 XMLWriter 實例, 之前需要的是 resource。
 XMLWriter::startDocument現(xiàn)在 writer 需要 XMLWriter 實例, 之前需要的是 resource。
 XMLWriter::startDtd現(xiàn)在 writer 需要 XMLWriter 實例, 之前需要的是 resource。
 XMLWriter::startDtdAttlist現(xiàn)在 writer 需要 XMLWriter 實例, 之前需要的是 resource。
 XMLWriter::startDtdElement現(xiàn)在 writer 需要 XMLWriter 實例, 之前需要的是 resource。
 XMLWriter::startDtdEntity現(xiàn)在 writer 需要 XMLWriter 實例, 之前需要的是 resource。
 XMLWriter::startElement現(xiàn)在 writer 需要 XMLWriter 實例, 之前需要的是 resource。
 XMLWriter::startElementNs現(xiàn)在 writer 需要 XMLWriter 實例, 之前需要的是 resource。
 XMLWriter::startPi現(xiàn)在 writer 需要 XMLWriter 實例, 之前需要的是 resource。
 XMLWriter::text現(xiàn)在 writer 需要 XMLWriter 實例, 之前需要的是 resource。
 XMLWriter::writeAttribute現(xiàn)在 writer 需要 XMLWriter 實例, 之前需要的是 resource。
 XMLWriter::writeAttributeNs現(xiàn)在 writer 需要 XMLWriter 實例, 之前需要的是 resource。
 XMLWriter::writeCdata現(xiàn)在 writer 需要 XMLWriter 實例, 之前需要的是 resource。
 XMLWriter::writeComment現(xiàn)在 writer 需要 XMLWriter 實例, 之前需要的是 resource。
 XMLWriter::writeDtd現(xiàn)在 writer 需要 XMLWriter 實例, 之前需要的是 resource。
 XMLWriter::writeDtdAttlist現(xiàn)在 writer 需要 XMLWriter 實例, 之前需要的是 resource。
 XMLWriter::writeDtdElement現(xiàn)在 writer 需要 XMLWriter 實例, 之前需要的是 resource。
 XMLWriter::writeDtdEntity現(xiàn)在 writer 需要 XMLWriter 實例, 之前需要的是 resource。
 XMLWriter::writeDtdEntitypublicId, systemId and notationData are nullable now.
 XMLWriter::writeElement現(xiàn)在 writer 需要 XMLWriter 實例, 之前需要的是 resource。
 XMLWriter::writeElementNs現(xiàn)在 writer 需要 XMLWriter 實例, 之前需要的是 resource。
 XMLWriter::writePi現(xiàn)在 writer 需要 XMLWriter 實例, 之前需要的是 resource。
 XMLWriter::writeRaw現(xiàn)在 writer 需要 XMLWriter 實例, 之前需要的是 resource。
7.4.4proc_open為 other_options 參數(shù)增加 create_new_console 選項。
7.4.0array_merge允許不帶參數(shù)調(diào)用,之前版本至少需要一個參數(shù)。
 array_merge_recursive允許不傳遞參數(shù)調(diào)用,之前的版本中至少需要一個參數(shù)。
 get_magic_quotes_gpc該函數(shù)已被廢棄。
 gzreadThis functions returns false on failure now; previously 0 was returned.
 gzwriteThis functions returns false on failure now; previously 0 was returned.
 hash_algos支持 crc32c。
 idn_to_ascii現(xiàn)在 variant 的默認值為 INTL_IDNA_VARIANT_UTS46 , 而不是已棄用的 INTL_IDNA_VARIANT_2003 。
 idn_to_utf8現(xiàn)在 variant 的默認值為 INTL_IDNA_VARIANT_UTS46 , 而不是已棄用的 INTL_IDNA_VARIANT_2003 。
 imagecropautoThe behavior of imagecropauto() in the bundled libgd has been synced with that of system libgd: IMG_CROP_DEFAULT no longer falls back to IMG_CROP_SIDES and threshold-cropping now uses the same algorithm as system libgd.
 imagecropautoThe default value of mode has been changed to IMG_CROP_AUTO. Formerly, the default value has been -1 which corresponds to IMG_CROP_DEFAULT, but passing -1 is now deprecated.
 implode在 array 之后傳遞 separator (即:使用遺留寫法)已被廢棄。
 ldap_control_paged_resultThis function has been deprecated.
 ldap_control_paged_result_responseThis function has been deprecated.
 password_hash現(xiàn)在 algo 參數(shù)可支持 string 類型,但為了向后兼容也支持 int 類型。
 password_hash擴展 sodium 提供了 Argon2 密碼的替代實現(xiàn)。
 password_needs_rehash現(xiàn)在 algo 參數(shù)可以支持 string 類型,但為了向后兼容性,同時支持 int 類型。
 preg_replace_callback新增 flags 參數(shù)。
 preg_replace_callback_arrayThe flags parameter was added.
 proc_open為 other_options 參數(shù)增加 create_process_group 選項。
 proc_openproc_open 的 cmd 參數(shù)現(xiàn)在也允許數(shù)組類型。
 Locale::lookupdefaultLocale is nullable now.
 SplFileObject::fgetcsvThe escape parameter now also accepts an empty string to disable the proprietary escape mechanism.
 SplFileObject::fputcsvThe escape parameter now also accepts an empty string to disable the proprietary escape mechanism.
 SplFileObject::fwriteThe function now returns false instead of zero on failure.
 SplFileObject::getCsvControlThe escape character can now be an empty string.
 SplFileObject::setCsvControlThe escape parameter now also accepts an empty string to disable the proprietary escape mechanism.
 SQLite3Stmt::bindParamparam now also supports the @param notation.
 SQLite3Stmt::bindValueparam now also supports the @param notation.
7.3.24, 7.4.12tidyNode::isHtmlThis function has been fixed to have reasonable behavior. Previously, almost any node was reported as being an HTML node.
7.3.14, 7.4.2dba_openThe lmdb driver now supports an additional $mapsize parameter.
7.3.0apache_request_headers此函數(shù)可用于 FPM SAPI 模式。
 array_push可以只用一個參數(shù)來調(diào)用此函數(shù),之前版本中至少需要兩個參數(shù)。
 array_unshift現(xiàn)在可以只用一個參數(shù)來調(diào)用,之前至少需要兩個參數(shù)。
 bcmul現(xiàn)在 bcmul 可以按想要的小數(shù)點位數(shù)返回數(shù)字。 而之前,返回的數(shù)字會忽略尾隨零(trailing decimal zeroes)。
 bcpow現(xiàn)在 bcpow 可以按想要的小數(shù)點位數(shù)返回數(shù)字。 而之前,返回的數(shù)字會忽略尾隨零(trailing decimal zeroes)。
 bcscale現(xiàn)在 bcscale 不僅可以設置,還可以獲取當前的小數(shù)點保留位數(shù)。 用于設置的時候,現(xiàn)在會返回之前的位數(shù)。 之前 scale 是強制的參數(shù), 且 bcscale 總是返回 true。
 compact現(xiàn)在,如果字符串指向的變量未定義,compact 會產(chǎn)生 E_NOTICE 級錯誤。 在此之前,此類問題會靜默忽略掉。
 define廢棄了 case_insensitive,并將在 8.0.0 版中移除。
 ftp_nb_fget參數(shù) mode 變?yōu)榭蛇x參數(shù)。 在之前的版本中,這是一個必填參數(shù)。
 ftp_nb_fput參數(shù) mode 變?yōu)榭蛇x參數(shù)。 在之前的版本中,這是一個必填參數(shù)。
 ftp_nb_getmode 參數(shù)變?yōu)榭蛇x,之前是強制性的。
 ftp_nb_putmode 參數(shù)為可選,之前版本中為必填。
 ftp_putmode 參數(shù)為可選,之前版本中為必選。
 getallheaders該函數(shù)可以在 FPM SAPI 中使用。
 is_countableis_countable has been added.
 json_decodeJSON_THROW_ON_ERROR options was added.
 json_encodeoptions 參數(shù)新增 JSON_THROW_ON_ERROR 常量。
 list支持在數(shù)組解構時傳引用。
 password_hash增加 PASSWORD_ARGON2ID,支持 Argon2id 密碼算法。
 preg_quote字符 # 被增加為需要轉(zhuǎn)義的。
 session_set_cookie_params增加 options 參數(shù), 可以通過傳入一個關聯(lián)數(shù)組對各個選項進行設置。 同時,通過使用這個參數(shù)還可以對 SameSite cookie 進行設置。
 setcookieAn alternative signature supporting an options array has been added. This signature supports also setting of the SameSite cookie attribute.
 unlink現(xiàn)在 Windows 也可以用 unlink 刪除文件句柄還在使用中的文件了,在此之前是無法刪除的。 然而,還是無法重新創(chuàng)建文件,需要等到所有句柄都關閉才可以。
 var_export現(xiàn)在將 stdClass 對象作為數(shù)組類型轉(zhuǎn)換為對象輸出( (object) array( ... )),而不是使用不存在的 stdClass::__setState 方法。實際效果是,現(xiàn)在 stdClass 是可輸出的,生成的代碼甚至可以在早期的 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.19, 7.3.6, 7.4.0DatePeriod::__constructrecurrences must be greater than 0 now.
7.2.19, 7.3.6SplFileObject::__toStringChanged from an alias of SplFileObject::current to an alias of SplFileObject::fgets.
7.2.18, 7.3.5substr_compareoffset 現(xiàn)在可能等于 main_str。
7.2.0array_unique如果 flags 是 SORT_STRING, 之前會復制 array 并移除非唯一數(shù)組(之后并不打包數(shù)組), 現(xiàn)在是通過添加唯一元素來生成新數(shù)組。這可能會導致不同的數(shù)字索引。
 bcmod新增參數(shù) scale。
 bcmod現(xiàn)在 num1 和 num2 不會截斷成整數(shù)。 所以現(xiàn)在 bcmod 的表現(xiàn)更接近 fmod 而不是 % 操作符。
 count當 value 參數(shù)傳入了無效的 countable 類型, count 現(xiàn)在會產(chǎn)生警告。
 date_parse返回數(shù)組的 zone 鍵現(xiàn)在代表秒,而不是分鐘。 并且正負符號已反轉(zhuǎn),例如:之前是 -120 現(xiàn)在是 7200。
 date_parse_from_formatThe zone element of the returned array represents seconds instead of minutes now, and its sign is inverted. For instance -120 is now 7200.
 exif_read_datafile 參數(shù)現(xiàn)在起支持本地文件和流式資源。
 exif_read_data新增了以下 EXIF 格式的支持: Samsung DJI Panasonic Sony Pentax Minolta Sigma/Foveon AGFA Kyocera Ricoh Epson
 gettype現(xiàn)在,已關閉的資源報告為 'resource (closed)'。 此前,已關閉的資源報告為 'unknown type'。
 hash_copy接受的參數(shù)以及返回值從資源類型修改為 HashContext 對象類型。
 hash_final接收參數(shù)從資源類型修改為 HashContext 對象類型。
 hash_hmac不再支持非加密的哈希函數(shù)(adler32,crc32,crc32b,fnv132,fnv1a32,fnv164,fnv1a64,joaat)。
 hash_hmac_file不再支持非加密的哈希函數(shù)(adler32,crc32,crc32b,fnv132,fnv1a32,fnv164,fnv1a64,joaat)。
 hash_init返回 HashContext 對象,不再返回資源類型。
 hash_init當使用 HASH_HMAC 選項的時候,不再支持非加密的哈希函數(shù)(adler32,crc32,crc32b,fnv132,fnv1a32,fnv164,fnv1a64,joaat)。
 hash_pbkdf2不再支持非加密的哈希函數(shù)(adler32,crc32,crc32b,fnv132,fnv1a32,fnv164,fnv1a64,joaat)。
 hash_update接收參數(shù)從資源類型修改為 HashContext 對象類型。
 hash_update_file接收參數(shù)從資源類型修改為 HashContext 對象類型。
 hash_update_stream接收參數(shù)從資源類型修改為 HashContext 對象類型。
 idn_to_asciiINTL_IDNA_VARIANT_2003 已被棄用; 可以使用 INTL_IDNA_VARIANT_UTS46 代替。
 idn_to_utf8INTL_IDNA_VARIANT_2003 已被棄用; 可以使用 INTL_IDNA_VARIANT_UTS46 代替。
 json_decodeJSON_INVALID_UTF8_IGNORE, and JSON_INVALID_UTF8_SUBSTITUTE options were added.
 json_encodeoptions 參數(shù)新增 JSON_INVALID_UTF8_IGNORE 和 JSON_INVALID_UTF8_SUBSTITUTE 常量。
 mail現(xiàn)在 additional_headers 參數(shù)開始支持 array。
 mb_convert_encoding現(xiàn)在該函數(shù)的 string 參數(shù)同時能接受 array 類型。 在此之前,僅支持 string。
 number_formatnumber_format 現(xiàn)在無法返回 -0,之前可能返回 -0,因為 number 可能會是 -0.01。
 openssl_pkcs7_verify新增 p7bfilename 參數(shù)。
 packfloat 和 double 類型支持大端和小端。
 parse_str不帶第二個參數(shù)的情況下使用 parse_str 會產(chǎn)生 E_DEPRECATED 警告。
 password_hash增加 PASSWORD_ARGON2I,支持 Argon2i 密碼算法。
 preg_match現(xiàn)在 $flags 參數(shù)支持 PREG_UNMATCHED_AS_NULL。
 preg_match_all現(xiàn)在 $flags 參數(shù)可以支持 PREG_UNMATCHED_AS_NULL。
 proc_nice在 Windows 平臺上可用。
 read_exif_data這個函數(shù)別名被廢棄。
 session_abortThe return type of this function is bool now. Formerly, it has been void.
 session_module_name不允許設置模塊名稱為 "user"。 在之前的版本中,如果設置為 "user",那么會被靜默的忽略到。
 session_namesession_name 函數(shù)會檢查會話狀態(tài), 之前的版本僅僅檢查 cookie 狀態(tài)。 所以,舊版本的 PHP 允許你在調(diào)用 session_start 函數(shù)之后再調(diào)用 session_name 函數(shù), 新版本的 PHP 不再允許這樣做了。
 session_resetThe return type of this function is bool now. Formerly, it has been void.
 session_set_cookie_params成功時返回 true, 或者在失敗時返回 false。 之前版本中是返回 void 的。
 session_write_closeThe return type of this function is bool now. Formerly, it has been void.
 unpackfloat and double types supports both Big Endian and Little Endian.
 utf8_decodeThis function has been moved from the XML extension to the core of PHP. In previous versions, it was only available if the XML extension was installed.
 utf8_encodeThis function has been moved from the XML extension to the core of PHP. In previous versions, it was only available if the XML extension was installed.
 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 datetime 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.0DateInterval::formatThe F and f format characters were added.
 DateTime::setTime新增 microsecond 參數(shù)。
 array_rand內(nèi)部隨機化算法已從 libc rand 函數(shù)更改為使用 梅森旋轉(zhuǎn)算法(Mersenne Twister) 隨機數(shù)生成器。
 file_get_contents支持負數(shù) offset。
 getenv現(xiàn)在可以省略 varname 來檢索所有環(huán)境變量的關聯(lián)數(shù)組 array。
 getopt添加 rest_index 參數(shù)。
 grapheme_extractSupport for negative offsets has been added.
 grapheme_striposSupport for negative offsets has been added.
 grapheme_strposSupport for negative offsets has been added.
 hash_algos加入 sha512/224,sha512/256,sha3-224,sha3-256,sha3-384 以及 sha3-512 算法的支持。
 iconv_strposSupport for negative offsets has been added.
 json_decodeAn empty JSON key ("") can be encoded to the empty object property instead of using a key with value _empty_.
 json_encodeoptions 參數(shù)新增 JSON_UNESCAPED_LINE_TERMINATORS 常量。
 json_encode對 Double 的值進行編碼時,使用 serialize_precision 代替 precision。
 list現(xiàn)在可以指定 list 中的鍵。 這就可以解構非數(shù)字鍵或者無順序的數(shù)組。
 long2ip參數(shù) proper_address 的類型從 string 改成 integer。
 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_strimwidth支持負數(shù)的 start 和 width。
 mb_stripos支持 offset 使用負數(shù)。
 mb_strpos支持負數(shù)的 offset。
 openssl_decrypt添加了 tag 和 aad 參數(shù)。
 openssl_encrypt增加了 tag、aad、tag_length 參數(shù)
 openssl_pkey_new添加了 curve_name 配置參數(shù)使得可以創(chuàng)建 EC 密鑰。
 session_start當 session_start 執(zhí)行失敗, 無法開始一個會話的時候,會返回 false, 并且不會初始化超級變量 $_SESSION。
 shuffle內(nèi)置的隨機數(shù)產(chǎn)生算法從 libc rand 函數(shù)改成梅森旋轉(zhuǎn)偽隨機數(shù)生成算法。
 str_shuffle內(nèi)置的隨機算法從 libc rand 函數(shù)改成了梅森旋轉(zhuǎn)演偽隨機數(shù)發(fā)生算法。
 stripos開始支持負數(shù)的 offset。
 strpos開始支持負數(shù)的 offset。
 substr_count開始支持負數(shù)的 offset 和 length。
 unpackThe optional offset has been added.
 ReflectionType::__toStringReflectionType::__toString has been deprecated.
 SessionHandler::gcPrior to this version, the function returned true on success.
 SessionHandlerInterface::gcPrior to this version, the function returned true on success.
7.1DateTime::__construct微秒部分不再是 '00000' 了,而是真實的微秒數(shù)據(jù)。
7.0.15,7.1.1pack添加了 “e”,“E”,“g” 和 “G” 代碼以啟用 float 和 double 的字節(jié)順序支持。
7.0.11iconv_substr如果 str 等長于 offset 個字符, 將返回空字符串。之前的版本里,這種情況是會返回 false 的。
7.0.10SplFileObject::getCsvControlAdded the escape character to the returned array.
 SQLite3::__constructThe filename can now be empty to use a private, temporary on-disk database.
7.0.7curl_setopt引入 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 和 CURLSSLOPT_NO_REVOKE。
7.0.0assertassert is now a language construct and not a function. assertion can now be an expression. The second parameter is now interpreted either as an exception (if a Throwable object is given), or as the description supported from PHP 5.4.8 onwards.
 define允許 array 的值。
 dirname添加可選的 levels 參數(shù)。
 getrusage此函數(shù)現(xiàn)在開始支持 Windows。
 json_decodeAn empty PHP string or value that after casting to string is an empty string (NULL, FALSE) results in JSON syntax error.
 json_decodeRejected RFC 7159 incompatible number formats - top level (07, 0xff, .1, -.1) and all levels ([1.], [1.e1])
 mktimeis_dst參數(shù)已經(jīng)被移除。
 openssl_open添加了 iv 參數(shù)
 openssl_seal添加 iv 變量。
 session_start新加 options 參數(shù)。
5.6.5cryptWhen the failure string "*0" is given as the salt, "*1" will now be returned for consistency with other crypt implementations. Prior to this version, PHP 5.6 would incorrectly return a DES hash.
5.6.0cryptRaise E_NOTICE security warning if salt is omitted.
 htmlentitiesThe default value for the encoding parameter was changed to be the value of the default_charset configuration option.
 htmlspecialcharsThe default value for the encoding parameter was changed to be the value of the default_charset configuration option.
 json_decodeInvalid non-lowercased variants of the true, false and null literals are no longer accepted as valid input, and will generate warnings.
 ReflectionClass::newInstanceWithoutConstructorAll internal classes can now be instantiated except for those declared final.
5.5.38, 5.6.24, 7.0.9getenv添加 local_only 參數(shù)。
5.5.21cryptWhen the failure string "*0" is given as the salt, "*1" will now be returned for consistency with other crypt implementations. Prior to this version, PHP 5.5 (and earlier branches) would incorrectly return a DES hash.
5.5.1hex2bin如果輸入的字符串是無效的十六進制字符串則拋出一個警告,
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.0emptyempty 現(xiàn)在支持表達式了,而不僅僅是變量。
 ip2longPrior to this version, on Windows ip2long would sometimes return a valid number even if passed a value which was not an (IPv4) Internet Protocol dotted address.
 此函數(shù)會生成一個 E_DEPRECATED 錯誤。
 mysql_list_dbs 函數(shù)已廢棄,調(diào)用時會拋出 E_DEPRECATED 級別的錯誤。
 函數(shù)會拋出一個 E_DEPRECATED 錯誤。
 mysql_tablename 函數(shù)已廢棄,調(diào)用時會拋出 E_DEPRECATED 級別的錯誤。
 setrawcookie發(fā)送給客戶端的 Set-Cookie 頭現(xiàn)在會加上 Max-Age 屬性。
5.4.43, 5.5.27, 5.6.11escapeshellcmd感嘆號會被空格所替換。
5.4.32, 5.5.16ucwords增加了 delimiters 參數(shù)。
5.4.8assert增加了參數(shù) description。 description 現(xiàn)在也作為第四個參數(shù)提供給 ASSERT_CALLBACK 模式里的回調(diào)函數(shù)。
 mb_strcutPassing NULL as length extracts all bytes to the end of the string. Prior to this version NULL was treated the same as 0.
 mb_substrlength 傳入 NULL,則從 start 提取到字符串的結(jié)尾處。 在之前的版本里, NULL 會被當作 0 來處理。
5.4.7parse_url修復了 host 在 協(xié)議 省略時的識別。
5.4.4hex2bin如果輸入的字符串有多余將拋出異常。 PHP 5.4.0 起字符串將被靜默地接受,但是最后的字節(jié)會被截斷。
5.4.0date_default_timezone_get不再根據(jù)操作系統(tǒng)的信息來推測時區(qū),因為這是不可靠的。
 date_default_timezone_get不再使用 TZ 來推測時區(qū)。
 dns_get_record增加了參數(shù)raw。
 empty檢查非數(shù)字的字符串偏移量會返回 true.
 filter_input_array添加 add_empty 參數(shù).
 filter_var_array添加 add_empty 參數(shù)。
 get_html_translation_tableThe constants ENT_HTML401, ENT_XML1, ENT_XHTML and ENT_HTML5 were added.
 get_html_translation_tableThe default value for the encoding parameter was changed to UTF-8.
 get_magic_quotes_runtime總是返回 false,因為魔術引號(magic quotes)功能已經(jīng)從 PHP 中移除。
 htmlentitiesencoding 參數(shù)的默認值改成 UTF-8。
 htmlentities增加常量 ENT_SUBSTITUTE、 ENT_DISALLOWED、 ENT_HTML401、 ENT_XML1、 ENT_XHTML、 ENT_HTML5。
 htmlspecialcharsencoding 參數(shù)的默認值改成 UTF-8。
 htmlspecialchars增加常量 ENT_SUBSTITUTE、 ENT_DISALLOWED、 ENT_HTML401、 ENT_XML1、 ENT_XHTML、 ENT_HTML5。
 htmlspecialchars_decode增加了 ENT_HTML401、ENT_XML1、 ENT_XHTML 和 ENT_HTML5 等常量。
 http_build_query加入了 enc_type 參數(shù)。
 iconv這個版本起,字符非法時候會返回 false,除非在輸出字符里指定了 //IGNORE 。 在之前版本,它會返回一部分字符串。
 imagewebp支持把 resource 流作為 to 參數(shù)傳入。
 json_decodeThe options parameter was added.
 json_decodeJSON_BIGINT_AS_STRING, and JSON_OBJECT_AS_ARRAY options were added.
 number_formatThis function now supports multiple bytes in dec_point and thousands_sep. Only the first byte of each separator was used in older versions.
 openssl_decrypt將 raw_output 更改至 options。
 scandirsorting_order now accepts constants. Any nonzero value caused descending order in previous versions.
5.3.9DateTime::createFromFormat新增 format 格式字符串中對于 + 格式字符的支持。
5.3.7cryptAdded $2x$ and $2y$ Blowfish modes to deal with potential high-bit attacks.
5.3.4get_html_translation_tableThe encoding parameter was added.
 rawurlencode因為 rawurlencode 使用了 EBCDIC,所以波浪線字符不會再被編碼。
 strip_tagsstrip_tags ignores self-closing XHTML tags in allowable_tags.
5.3.3openssl_decrypt添加 iv 參數(shù)。
 parse_url在 URL 解析失敗時將不會產(chǎn)生 E_WARNING 級別的錯誤。
5.3.2crypt修正了 Blowfish 算法由于非法循環(huán)導致的問題,返回“失敗”字符串(“*0” 或 “*1”)而不是轉(zhuǎn)而使用 DES 算法。
 crypt基于 Ulrich Drepper 的實現(xiàn),新增基于 SHA-256 算法和 SHA-512 算法的 crypt。
 flock在文件資源句柄關閉時不再自動解鎖。現(xiàn)在要解鎖必須手動進行。
5.3.1get_defined_constants僅作用于 Windows:內(nèi)核常量歸類到 Core,之前是 mhash。
5.3.0 起get_classobject 默認參數(shù)現(xiàn)在是 null ,所以,現(xiàn)在傳入 null 到 object 參數(shù)時,和沒傳參數(shù)的結(jié)果一樣。
5.3.0DateTime::__construct如果 time 參數(shù)不是一個有效的 日期/時間格式, 會拋出異常。 在之前的版本中是會發(fā)出一個錯誤。
 DateTimeZone::listIdentifiers添加可選的 what 和 country 參數(shù)。
 acoshThis function is now available on all platforms
 asinh此函數(shù)在所有平臺上均可用
 atanh此函數(shù)在所有平臺上都可以用了
 checkdnsrr這個函數(shù)在Windows平臺上也可以使用了。
 clearstatcache增加了可選的 clear_realpath_cache 和 filename 參數(shù).
 cryptPHP 現(xiàn)在包含了它自己的 MD5 Crypt 實現(xiàn),包括標準 DES 算法,擴展的 DES 算法以及 Blowfish 算法。如果系統(tǒng)缺乏相應的實現(xiàn),那么 PHP 將使用它自己的實現(xiàn)。
 date_default_timezone_set現(xiàn)在會拋出 E_WARNING 而不是 E_STRICT。
 dns_get_record可以是在windows平臺上使用這個函數(shù)了。
 dns_get_record在此版本之前,如果給參數(shù)authns傳入值,則必須同時傳入addtl的值。
 expm1此函數(shù)在所有平臺上均可用
 fgetcsv增加了 escape 參數(shù)。
 fnmatch此函數(shù)開始在 Windows 平臺上生效。
 func_get_argIf this function is called from the outermost scope of a file which has been included by calling include or require from within a function in the calling file, it now generates a warning and returns false. (不知道如何翻譯跟好,直接參考例2即可明白)
 func_get_arg該函數(shù)可以在參數(shù)列表中使用。
 func_get_argsIf this function is called from the outermost scope of a file which has been included by calling include or require from within a function in the calling file, it now generates a warning and returns false. (不知道如何翻譯跟好,直接參考例2即可明白)
 func_get_args該函數(shù)可以在參數(shù)列表中使用。
 func_num_argsThis function can now be used in parameter lists.
 func_num_argsIf this function is called from the outermost scope of a file which has been included by calling include or require from within a function in the calling file, it now generates a warning and returns -1.
 get_cfg_varget_cfg_var 被修復,能夠返回 "array" 的 ini 選項。
 get_defined_constants內(nèi)核常量歸類為 Core,之前是 internal。在 Windows 上,內(nèi)核常量歸類到 mhash。
 get_object_varsThis function now returns NULL if the object isn't an object.
 getimagesizeAdded icon support.
 getmxrrWindows 平臺上也能用這個函數(shù)了。
 htmlentities增加常量 ENT_IGNORE。
 htmlspecialchars增加常量 ENT_IGNORE。
 imagecolorclosesthwb在 Windows 平臺上可用
 imagefilterPixelation support (IMG_FILTER_PIXELATE) was added.
 ini_get當配置項不存在,之前會返回空字符串,現(xiàn)在會返回 false。
 ini_get_all增加參數(shù) details。
 json_decodeAdded the optional depth. The default recursion depth was increased from 128 to 512
 link該功能在 Windows 平臺下開始有效(Vista、 Server 2008 或更高版本)。
 linkinfoWindows 平臺上開始可用(Vista、Server 2008 或更高版本)。
 log1p此函數(shù)在所有平臺上均可用
 mktimemktime now throws E_DEPRECATED notice if the is_dst parameter is used.
 nl2br新增可選的 is_xhtml 參數(shù)。在此之前,總是插入 '<br />'。
 openssl_open添加了 method 參數(shù)
 openssl_seal添加 method 變量。
 property_existsThis function checks the existence of a property independent of accessibility.
 rawurlencode現(xiàn)在符合了RFC 3986。
 readlink此函數(shù)在 Windows 平臺下可用(Vista、Server 2008 或更高版本)。
 session_start如果函數(shù)調(diào)用失敗返回 false, 之前版本返回了 true。
 setlocaleThis function now throws an E_DEPRECATED notice if a string is passed to the category parameter instead of one of the LC_* constants.
 spl_autoload_register引入了命名空間的支持。
 spl_autoload_register添加了 prepend 參數(shù)。
 stristr新增可選的 before_needle 參數(shù)。
 strstr新增可選的 before_needle 參數(shù)。
 symlink此函數(shù)在 Windows 平臺上可用(Vista、Server 2008 或更高版本)。
 time_nanosleep至此之后該函數(shù)在Windows平臺下可用。
 time_sleep_until自此,函數(shù)在Windows平臺可用。
5.2.11get_defined_constantscategorize 參數(shù)現(xiàn)在可以合適得被處理。 在此之前,categorize 被解釋為 !is_null($categorize),導致任何非 null 的值會強制常量分類。
5.2.10ip2long再此之前的版本, ip2long 有時會返回即使這不是一個IPV4的標準地址的數(shù)字地址。
5.2.6fopen增加了選項 'c' 和 'c+'
5.2.5addcslashesThe escape sequences \v and \f were added.
 imagefilterAlpha support for IMG_FILTER_COLORIZE was added.
5.2.4checkdnsrr增加了TXT的記錄類型。
5.2.3getimagesizeRead errors generated by this function downgraded to E_NOTICE from E_WARNING.
 htmlentities增加參數(shù) double_encode。
 htmlspecialchars增加參數(shù) double_encode。
 json_decodeThe nesting limit was increased from 20 to 128
 PDOStatement::getColumnMetatable 字段
5.2.2ftp_ssl_connect以前版本中,如果無法使用 SSL 連接,將會返回一個非 SSL 的連接, 在 5.2.2 版本中修改為返回 false
 phpinfo增加了“已加載的配置文件”信息,之前只存在“配置文件路徑(php.ini)"。
 proc_terminate之前的版本被用來銷毀進程 resource。
 token_get_allLine numbers are returned in element 2
5.2.1iterator_to_array添加了 use_keys 參數(shù)。
 json_decodeAdded support for JSON decoding of basic types.
 memory_get_peak_usage使用此函數(shù)無需在編譯時加上 --enable-memory-limit 選項。
 memory_get_usage不需要在編譯時使用 --enable-memory-limit 選項就能夠使用這個函數(shù)。
 mt_srandThe Mersenne Twister implementation in PHP now uses a new seeding algorithm by Richard Wagner. Identical seeds no longer produce the same sequence of values they did in previous versions. This behavior is not expected to change again, but it is considered unsafe to rely upon it nonetheless.
5.2.0base64_decode增加了 strict 。
 curl_multi_info_readmsgs_in_queue被加入。
 imagettftextIt is now possible to specify an hexadecimal entity in text.
 mb_strrpos增加了可選參數(shù) offset。
 memory_get_peak_usage添加參數(shù) real_usage。
 memory_get_usage增加了參數(shù) real_usage。
 openssl_verify添加了 signature_alg 參數(shù)。
 session_get_cookie_params在返回數(shù)組中加入 “httponly”。
 session_set_cookie_params加入 httponly 參數(shù)。
 setrawcookie增加了 httponly 參數(shù)。
 PDOStatement::executeinput_parameters 中的鍵名必須和 SQL 中聲明的相匹配。PHP 5.2.0 之前默認忽略。
5.1.3curl_getinfo引入CURLINFO_HEADER_OUT.
 get_headers自 PHP 5.1.3 起本函數(shù)使用默認的流上下文,其可以用 stream_context_get_default 函數(shù)設定和修改。
 http_build_query方括號也會被轉(zhuǎn)義。
5.1.2date_default_timezone_set本版本開始驗證 timezone_identifier 參數(shù)。
 http_build_query加入了參數(shù) arg_separator。
 parse_url增加了參數(shù) component。
5.1.1dateformat 參數(shù)標準的可用日期/時間格式常量見: 常量
5.1.0class_implements增加了允許參數(shù)class為字符串的選項。增加了autoload參數(shù)。
 class_parents增加了允許參數(shù)class為字符串的選項。增加了autoload參數(shù)。
 ctype_digit在 PHP 5.1.0 之前,當 text 是一個空字符串的時候,該函數(shù)將返回 true 。
 date現(xiàn)在發(fā)布 E_STRICT 和 E_NOTICE 時區(qū)錯誤。
 date時間戳的有效取值范圍為 GMT 時間的 1901 年 12 月 13 日至 GMT 時間的 2038 年 1 月 19 日。 (32 位有符號整數(shù)的取值范圍)。 但是,在 PHP 5.1.0 之前的版本,在某些系統(tǒng)(例如 Windows)上有效取值范圍為 1970 年 1 月 1 日至 2038 年 1 月 19 日。
 date_sunrise現(xiàn)在發(fā)布 E_STRICT 和 E_NOTICE 時區(qū)錯誤。
 date_sunset現(xiàn)在發(fā)布 E_STRICT 和 E_NOTICE 時區(qū)錯誤。
 file_put_contents添加了對 LOCK_EX 的支持和 data 參數(shù)處理 stream 資源的功能。
 gettimeofday增加了參數(shù) return_float。
 imagerotate新增: ignore_transparent 。
 localtime現(xiàn)在發(fā)布 E_STRICT 和 E_NOTICE 時區(qū)錯誤。
 mktimeis_dst 參數(shù)被廢棄。出錯時函數(shù)返回 false 而不再是 -1。修正了本函數(shù)可以接受年月日參數(shù)全為零。
 mktime現(xiàn)在發(fā)布 E_STRICT 和 E_NOTICE 時區(qū)錯誤。
 mktimeWhen called with no arguments, mktime throws E_STRICT notice. Use the time function instead.
 strftime現(xiàn)在發(fā)布 E_STRICT 和 E_NOTICE 時區(qū)錯誤。
5.0.0checkdnsrr增加了AAAA的記錄類型。
 fgetss參數(shù) length 從 此開始可選。
 file_put_contentsAdded context support
 is_executableis_executable 開始可用以于 Windows。
 jdtojewish增加了參數(shù) fl。
 opendirpath 支持 ftp:// URL wrapper
 socket_create增加 AF_INET6 支持。
 strip_tagsstrip_tags 變?yōu)槎M制安全的。
 strrpos參數(shù) needle 可以是一個多字符的字符串。
 strrpos引入 offset 參數(shù)。