對綁定的擴展的函數(shù)有以下更新。
Version | Function | Description |
---|---|---|
Since 5.0.0 | get_parent_class | The object parameter is optional if called from the object's method. |
Since 5.0 | cal_info | 參數(shù)calendar作為可選項,缺省時默認值為"所有歷法"。 |
Since 4.3.0 | easter_date | year參數(shù)可選,缺省的默認值是當(dāng)年。 |
easter_days | 引入?yún)?shù) method。 | |
easter_days | 參數(shù)year 可選,缺省默認值是當(dāng)年。 | |
Since 4.2.0 | srand | seed 成為可選,省略時會默認使用隨機值。 |
Since 4.0.5 | get_parent_class | If object is a string, returns the name of the parent class of the class with that name. |
prior to 5.3.0 | get_object_vars | If the object isn't an object, then get_object_vars would return false |
Prior to 5.1.3 | imagecolorallocatealpha | Returns -1 if the allocation failed. |
prior to 4.2.0 | get_object_vars | If 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.1 | get_defined_functions | 增加 exclude_disabled 參數(shù)。 |
PHP 5.3.2 (PECL OCI8 1.4) | oci_set_prefetch | Before this release, rows must be >= 1. |
PHP 5.3 (PECL OCI8 1.3.4) | oci_set_prefetch | Before 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.2 | oci_set_prefetch_lob | |
PECL 3.0.0 | IntlDateFormatter::format | Support for providing IntlCalendar objects to the datetime parameter was added. |
Before 5.1.0 | get_parent_class | If called without parameter outside object, this function would have returned null with a warning. |
8.1.0 | DirectoryIterator::key | When the iterator is uninitialized, an Error is thrown now. Previously, the method returned false. |
DOMDocument::createComment | In case of an error, a DomException is thrown now. Previously, false was returned. | |
DOMDocument::createDocumentFragment | In case of an error, a DomException is thrown now. Previously, false was returned. | |
DOMDocument::createTextNode | In 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_decode | flags changed from ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401. | |
imageopenpolygon | The 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_ext | Returns an LDAP\Result instance now; previously, a 資源(resource) was returned. | |
ldap_add_ext | 現(xiàn)在 ldap 參數(shù)接受 LDAP\Connection 實例,之前接受 資源(resource)。 | |
ldap_bind_ext | Returns 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_connect | Returns an LDAP\Connection instance now; previously, a 資源(resource) was returned. | |
ldap_count_entries | 現(xiàn)在 ldap 參數(shù)接受 LDAP\Connection 實例,之前接受 資源(resource)。 | |
ldap_count_entries | The result parameter expects an LDAP\Result instance now; previously, a 資源(resource) was expected. | |
ldap_count_references | The 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_ext | Returns 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_attribute | The 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_entry | The result parameter expects an LDAP\Result instance now; previously, a 資源(resource) was expected. | |
ldap_first_entry | Returns an LDAP\ResultEntry instance now; previously, a 資源(resource) was returned. | |
ldap_free_result | The 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_attributes | The 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_dn | The 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_entries | The 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_values | The entry parameter expects an LDAP\ResultEntry instance now; previously, a 資源(resource) was expected. | |
ldap_get_values_len | The 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_list | Returns 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_ext | Returns 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_ext | Returns an LDAP\Result instance now; previously, a 資源(resource) was returned. | |
ldap_mod_replace_ext | 現(xiàn)在 ldap 參數(shù)接受 LDAP\Connection 實例,之前接受 資源(resource)。 | |
ldap_mod_replace_ext | Returns an LDAP\Result instance now; previously, a 資源(resource) was returned. | |
ldap_next_attribute | The 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_entry | The entry parameter expects an LDAP\ResultEntry instance now; previously, a 資源(resource) was expected. | |
ldap_next_entry | Returns 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_exop | The 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_result | The result parameter expects an LDAP\Result instance now; previously, a 資源(resource) was expected. | |
ldap_read | Returns 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_ext | Returns 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_search | Returns 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)。 | |
mhash | This function has been deprecated. Use the hash_*() functions instead. | |
mhash_count | This function has been deprecated. Use the hash_*() functions instead. | |
mhash_get_block_size | This function has been deprecated. Use the hash_*() functions instead. | |
mhash_get_hash_name | This function has been deprecated. Use the hash_*() functions instead. | |
mhash_keygen_s2k | This function has been deprecated. Use the hash_*() functions instead. | |
next | 棄用在 object 上調(diào)用此函數(shù)。 在 object 優(yōu)先使用 get_mangled_object_vars 或者使用 ArrayIterator。 | |
odbc_result_all | This function has been deprecated. | |
openssl_cms_encrypt | The 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_personal | The dictionary parameter expects an PSpell\Dictionary instance now; previously, a 資源(resource) was expected. | |
pspell_add_to_session | The dictionary parameter expects an PSpell\Dictionary instance now; previously, a 資源(resource) was expected. | |
pspell_check | The dictionary parameter expects an PSpell\Dictionary instance now; previously, a 資源(resource) was expected. | |
pspell_clear_session | The dictionary parameter expects an PSpell\Dictionary instance now; previously, a 資源(resource) was expected. | |
pspell_config_create | Returns an PSpell\Config instance now; previously, a 資源(resource) was returned. | |
pspell_config_data_dir | The config parameter expects an PSpell\Config instance now; previously, a 資源(resource) was expected. | |
pspell_config_dict_dir | The config parameter expects an PSpell\Config instance now; previously, a 資源(resource) was expected. | |
pspell_config_ignore | The config parameter expects an PSpell\Config instance now; previously, a 資源(resource) was expected. | |
pspell_config_mode | The config parameter expects an PSpell\Config instance now; previously, a 資源(resource) was expected. | |
pspell_config_personal | The config parameter expects an PSpell\Config instance now; previously, a 資源(resource) was expected. | |
pspell_config_repl | The config parameter expects an PSpell\Config instance now; previously, a 資源(resource) was expected. | |
pspell_config_runtogether | The config parameter expects an PSpell\Config instance now; previously, a 資源(resource) was expected. | |
pspell_config_save_repl | The config parameter expects an PSpell\Config instance now; previously, a 資源(resource) was expected. | |
pspell_new | Returns an PSpell\Dictionary instance now; previously, a 資源(resource) was returned. | |
pspell_new_config | The config parameter expects an PSpell\Config instance now; previously, a 資源(resource) was expected. | |
pspell_new_config | Returns an PSpell\Dictionary instance now; previously, a 資源(resource) was returned. | |
pspell_new_personal | Returns an PSpell\Dictionary instance now; previously, a 資源(resource) was returned. | |
pspell_save_wordlist | The dictionary parameter expects an PSpell\Dictionary instance now; previously, a 資源(resource) was expected. | |
pspell_store_replacement | The dictionary parameter expects an PSpell\Dictionary instance now; previously, a 資源(resource) was expected. | |
pspell_suggest | The 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_select | microseconds is now nullable. | |
MultipleIterator::current | A RuntimeException is now thrown if MultipleIterator::current is called on an invalid iterator. Previously, false was returned. | |
MultipleIterator::key | A RuntimeException is now thrown if MultipleIterator::key is called on an invalid iterator. Previously, false was returned. | |
Phar::buildFromDirectory | Phar::buildFromDirectory no longer returns false. | |
Phar::buildFromIterator | Phar::buildFromIterator no longer returns false. | |
PharData::buildFromDirectory | PharData::buildFromDirectory no longer returns false. | |
PharData::buildFromIterator | PharData::buildFromIterator no longer returns false. | |
ReflectionClassConstant::getName | Throws an Error in case the name property has not been initialized. Previously, the method returned false on failure. | |
ReflectionParameter::__clone | This method is no longer final. | |
ReflectionProperty::__clone | This method is no longer final. | |
ReflectionZendExtension::__clone | This method is no longer final. | |
SplFileObject::fputcsv | The optional eol parameter has been added. | |
SplObjectStorage::current | SplObjectStorage::current now throws an Error exception if the current position is invalid. Previously, false was returned instead. | |
8.0.3 | DOMDocument::getElementsByTagNameNS | namespace is nullable now. |
DOMElement::getElementsByTagNameNS | namespace is nullable now. | |
DOMImplementation::createDocument | namespace is now nullable. | |
finfo::__construct | magic_database is nullable now. | |
bind_textdomain_codeset | codeset is nullable now. Previously, it was not possible to retrieve the currently set encoding. | |
bindtextdomain | directory is nullable now. Previously, it was not possible to retrieve the currently set directory. | |
SoapClient::__setLocation | location is nullable now. | |
SoapVar::__construct | typeName, typeNamespace, nodeName,and nodeNamespace are nullable now. | |
8.0.0, PECL OCI8 3.0.0 | oci_lob_copy | length is now nullable. |
OCICollection::append | The OCI-Collection class was renamed to OCICollection to align with PHP naming standards. | |
OCICollection::assign | The OCI-Collection class was renamed to OCICollection to align with PHP naming standards. | |
OCICollection::assignElem | The OCI-Collection class was renamed to OCICollection to align with PHP naming standards. | |
OCICollection::free | The OCI-Collection class was renamed to OCICollection to align with PHP naming standards. | |
OCICollection::getElem | The OCI-Collection class was renamed to OCICollection to align with PHP naming standards. | |
OCICollection::max | The OCI-Collection class was renamed to OCICollection to align with PHP naming standards. | |
OCICollection::size | The OCI-Collection class was renamed to OCICollection to align with PHP naming standards. | |
OCICollection::trim | The OCI-Collection class was renamed to OCICollection to align with PHP naming standards. | |
OCILob::append | The OCI-Lob class was renamed to OCILob to align with PHP naming standards. | |
OCILob::close | The OCI-Lob class was renamed to OCILob to align with PHP naming standards. | |
OCILob::eof | The OCI-Lob class was renamed to OCILob to align with PHP naming standards. | |
OCILob::erase | offset and length are now nullable. | |
OCILob::erase | The OCI-Lob class was renamed to OCILob to align with PHP naming standards. | |
OCILob::export | The OCI-Lob class was renamed to OCILob to align with PHP naming standards. | |
OCILob::export | offset and length are now nullable. | |
OCILob::flush | The OCI-Lob class was renamed to OCILob to align with PHP naming standards. | |
OCILob::free | The OCI-Lob class was renamed to OCILob to align with PHP naming standards. | |
OCILob::getBuffering | The OCI-Lob class was renamed to OCILob to align with PHP naming standards. | |
OCILob::import | The OCI-Lob class was renamed to OCILob to align with PHP naming standards. | |
OCILob::load | The OCI-Lob class was renamed to OCILob to align with PHP naming standards. | |
OCILob::read | The OCI-Lob class was renamed to OCILob to align with PHP naming standards. | |
OCILob::rewind | The OCI-Lob class was renamed to OCILob to align with PHP naming standards. | |
OCILob::save | The OCI-Lob class was renamed to OCILob to align with PHP naming standards. | |
OCILob::saveFile | The OCI-Lob class was renamed to OCILob to align with PHP naming standards. | |
OCILob::seek | The OCI-Lob class was renamed to OCILob to align with PHP naming standards. | |
OCILob::setBuffering | The OCI-Lob class was renamed to OCILob to align with PHP naming standards. | |
OCILob::size | The OCI-Lob class was renamed to OCILob to align with PHP naming standards. | |
OCILob::tell | The OCI-Lob class was renamed to OCILob to align with PHP naming standards. | |
OCILob::truncate | The OCI-Lob class was renamed to OCILob to align with PHP naming standards. | |
OCILob::write | The OCI-Lob class was renamed to OCILob to align with PHP naming standards. | |
OCILob::write | length is now nullable. | |
OCILob::writeTemporary | The OCI-Lob class was renamed to OCILob to align with PHP naming standards. | |
OCILob::writeToFile | The OCI-Lob class was renamed to OCILob to align with PHP naming standards. | |
OCILob::writeToFile | offset and length are now nullable. | |
8.0.0 | DateInterval::__construct | W can be combined with D. |
DateTime::format | Prior to this version, false was returned on failure. | |
DateTime::format | The format character p has been added. | |
DateTime::getOffset | Prior to this version, false was returned on failure. | |
DateTime::getTimestamp | These functions no longer return false on failure. | |
DirectoryIterator::__construct | Now throws a ValueError if directory is an empty string; previously it threw a RuntimeException. | |
DOMImplementation::createDocument | doctype is now nullable. | |
FFI::cdef | lib is nullable now. | |
FFI::string | size is nullable now; previously, its default was 0. | |
FilesystemIterator::__construct | Now throws a ValueError if directory is an empty string; previously it threw a RuntimeException. | |
apache_note | 現(xiàn)在 note_value 可為 null。 | |
array_column | index_key 參數(shù)指定的列中的對象不再強制轉(zhuǎn)換為字符串,而是會拋出 TypeError。 | |
array_filter | 如果 callback 接受引用傳遞參數(shù),該方法將會拋出 E_WARNING。 | |
array_filter | callback 現(xiàn)在可為空(nullable)。 | |
array_map | 如果 callback 接受引用傳遞參數(shù),該方法將會拋出 E_WARNING。 | |
array_reduce | 如果 callback 接受引用傳遞參數(shù),該方法將會拋出 E_WARNING。 | |
array_splice | length 現(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。 | |
bcpowmod | scale is now nullable. | |
bcscale | 現(xiàn)在 scale 可以為 null。 | |
bcsqrt | 現(xiàn)在 scale 可以為 null。 | |
bcsub | 現(xiàn)在 scale 可以為 null。 | |
bzdecompress | use_less_memory 的類型從 int 變?yōu)?bool。 之前默認值為 0。 | |
bzwrite | length 現(xiàn)在可為空(nullable)。 | |
com_event_sink | sink_interface is nullable now. | |
com_get_active_object | codepage is nullable now. | |
count | 當(dāng) value 參數(shù)傳入了無效的 countable 類型, count 現(xiàn)在會拋出 TypeError。 | |
deflate_add | context expects a DeflateContext instance now; previously, a resource was expected. | |
deflate_init | On success, this function returns a DeflateContext instance now; previously, a resource was returned. | |
dir | context 現(xiàn)在可為空(nullable)。 | |
dom_import_simplexml | This function no longer returns null on failure. | |
enchant_broker_describe | Prior to this version, the function returned false on failure. | |
enchant_broker_describe | broker expects an EnchantBroker instance now; previoulsy, a 資源(resource) was expected. | |
enchant_broker_dict_exists | broker expects an EnchantBroker instance now; previoulsy, a 資源(resource) was expected. | |
enchant_broker_free | broker expects an EnchantBroker instance now; previoulsy, a 資源(resource) was expected. | |
enchant_broker_free_dict | dictionary expects a EnchantDictionary now; previoulsy, a 資源(resource) was expected. | |
enchant_broker_get_dict_path | broker expects an EnchantBroker instance now; previoulsy, a 資源(resource) was expected. | |
enchant_broker_get_error | broker expects an EnchantBroker instance now; previoulsy, a 資源(resource) was expected. | |
enchant_broker_init | On success, this function returns an EnchantBroker instance now; previoulsy, a 資源(resource) was retured. | |
enchant_broker_list_dicts | broker expects an EnchantBroker instance now; previoulsy, a 資源(resource) was expected. | |
enchant_broker_list_dicts | Prior to this version, the function returned false on failure. | |
enchant_broker_request_dict | On success, this function returns an EnchantDictionary instance now; previoulsy, a 資源(resource) was retured. | |
enchant_broker_request_dict | broker expects an EnchantBroker instance now; previoulsy, a 資源(resource) was expected. | |
enchant_broker_request_pwl_dict | On success, this function returns an EnchantDictionary instance now; previoulsy, a 資源(resource) was retured. | |
enchant_broker_request_pwl_dict | broker expects an EnchantBroker instance now; previoulsy, a 資源(resource) was expected. | |
enchant_broker_set_dict_path | broker expects an EnchantBroker instance now; previoulsy, a 資源(resource) was expected. | |
enchant_broker_set_ordering | broker expects an EnchantBroker instance now; previoulsy, a 資源(resource) was expected. | |
enchant_dict_add | dictionary expects an EnchantDictionary instance now; previoulsy, a 資源(resource) was expected. | |
enchant_dict_add_to_session | dictionary expects an EnchantDictionary instance now; previoulsy, a 資源(resource) was expected. | |
enchant_dict_check | dictionary expects an EnchantDictionary instance now; previoulsy, a 資源(resource) was expected. | |
enchant_dict_describe | dictionary expects an EnchantDictionary instance now; previoulsy, a 資源(resource) was expected. | |
enchant_dict_describe | Prior to this version, the function returned false on failure. | |
enchant_dict_get_error | dictionary expects an EnchantDictionary instance now; previoulsy, a 資源(resource) was expected. | |
enchant_dict_is_added | dictionary expects an EnchantDictionary instance now; previoulsy, a 資源(resource) was expected. | |
enchant_dict_quick_check | dictionary expects an EnchantDictionary instance now; previoulsy, a 資源(resource) was expected. | |
enchant_dict_store_replacement | dictionary expects an EnchantDictionary instance now; previoulsy, a 資源(resource) was expected. | |
enchant_dict_suggest | dictionary expects an EnchantDictionary instance now; previoulsy, a 資源(resource) was expected. | |
exif_read_data | required_sections 現(xiàn)在可以為空。 | |
get_resources | type is nullable now. | |
gmp_binomial | This function no longer returns false on failure. | |
gmp_export | This function no longer returns false on failure. | |
gmp_import | This function no longer returns false on failure. | |
gzgets | length is nullable now; previously, the default was 1024. | |
gzwrite | length is nullable now; previously, the default was 0. | |
html_entity_decode | encoding is nullable now. | |
iconv_strpos | encoding is nullable now. | |
iconv_strrpos | encoding is nullable now. | |
imagebmp | image expects a GdImage instance now; previously, a resource was expected. | |
imagebmp | The type of compressed is bool now; formerly it was int. | |
imagecreatefrombmp | On success, this function returns a GDImage instance now; previously, a resource was returned. | |
imagecreatefromtga | On success, this function returns a GDImage instance now; previously, a 資源(resource) was returned. | |
imagecrop | image expects a GdImage instance now; previously, a resource was expected. | |
imagecrop | On success, this function returns a GDImage instance now; previously, a resource was returned. | |
imagecropauto | On success, this function returns a GDImage instance now; previously, a resource was returned. | |
imagecropauto | image expects a GdImage instance now; previously, a resource was expected. | |
imageflip | image expects a GdImage instance now; previously, a resource was expected. | |
imagegetclip | image expects a GdImage instance now; previously, a resource was expected. | |
imagegetinterpolation | image expects a GdImage instance now; previously, a resource was expected. | |
imagegrabscreen | On success, this function returns a GDImage instance now; previously, a resource was returned. | |
imagegrabwindow | client_area expects a bool now; previously it expected an int. | |
imagegrabwindow | On success, this function returns a GDImage instance now; previously, a resource was returned. | |
imageopenpolygon | image expects a GdImage instance now; previously, a resource was expected. | |
imagepalettetotruecolor | image expects a GdImage instance now; previously, a resource was expected. | |
imageresolution | resolution_x and resolution_y are now nullable. | |
imagescale | On success, this function returns a GDImage instance now; previously, a resource was returned. | |
imagescale | image expects a GdImage instance now; previously, a resource was expected. | |
imagesetclip | image expects a GdImage instance now; previously, a resource was expected. | |
imagesetinterpolation | image expects a GdImage instance now; previously, a resource was expected. | |
implode | 在 array 之后傳遞 separator 已不再支持。 | |
inflate_add | context expects an InflateContext instance now; previously, a resource was expected. | |
inflate_get_read_len | context expects an InflateContext instance now; previously, a resource was expected. | |
inflate_get_status | context expects an InflateContext instance now; previously, a resource was expected. | |
inflate_init | On success, this function returns an InflateContext instance now; previously, a resource was returned. | |
ldap_add | controls is nullable now; previously, it defaulted to []. | |
ldap_add_ext | controls is nullable now; previously, it defaulted to []. | |
ldap_bind_ext | controls is nullable now; previously, it defaulted to []. | |
ldap_compare | controls is nullable now; previously, it defaulted to []. | |
ldap_control_paged_result | This function has been removed. | |
ldap_control_paged_result_response | This function has been removed. | |
ldap_delete | controls is nullable now; previously, it defaulted to []. | |
ldap_delete_ext | controls is nullable now; previously, it defaulted to []. | |
ldap_exop_passwd | controls is nullable now; previously, it defaulted to []. | |
ldap_list | controls is nullable now; previously, it defaulted to []. | |
ldap_mod_add | controls is nullable now; previously, it defaulted to []. | |
ldap_mod_del | controls is nullable now; previously, it defaulted to []. | |
ldap_mod_replace | controls is nullable now; previously, it defaulted to []. | |
ldap_modify_batch | controls is nullable now; previously, it defaulted to []. | |
ldap_mod_add_ext | controls is nullable now; previously, it defaulted to []. | |
ldap_mod_del_ext | controls is nullable now; previously, it defaulted to []. | |
ldap_mod_replace_ext | controls is nullable now; previously, it defaulted to []. | |
ldap_read | controls is nullable now; previously, it defaulted to []. | |
ldap_rename | controls is nullable now; previously, it defaulted to []. | |
ldap_rename_ext | controls is nullable now; previously, it defaulted to []. | |
ldap_sasl_bind | dn, password, mech, realm, authc_id, authz_id and props are nullable now. | |
ldap_search | controls is nullable now; previously, it defaulted to []. | |
ldap_set_rebind_proc | callback is nullable now. | |
ldap_sort | This function has been removed. | |
libxml_use_internal_errors | use_errors is nullable now. Previously, its default was false. | |
mb_chr | 現(xiàn)在 encoding 可以為 null。 | |
mb_convert_encoding | 現(xiàn)在,當(dāng) to_encoding 為無效編碼時, mb_convert_encoding 會拋出 ValueError。 | |
mb_convert_encoding | 現(xiàn)在 from_encoding 可以傳入 null。 | |
mb_convert_encoding | 現(xiàn)在,當(dāng) from_encoding 為無效編碼時, mb_convert_encoding 會拋出 ValueError。 | |
mb_convert_kana | 現(xiàn)在 encoding 可以為 null。 | |
mb_encode_mimeheader | charset 和 transfer_encoding 現(xiàn)在可以為空。 | |
mb_encode_numericentity | 現(xiàn)在 encoding 可以為 null。 | |
mb_ereg | This 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_match | options is nullable now. | |
mb_ereg_replace | options is nullable now. | |
mb_ereg_replace_callback | options is nullable now. | |
mb_ereg_search | pattern and options are nullable now. | |
mb_ereg_search_init | pattern and options are nullable now. | |
mb_ereg_search_pos | pattern and options are nullable now. | |
mb_ereg_search_regs | pattern and options are nullable now. | |
mb_eregi | This 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_replace | options 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_options | options is nullable now. | |
mb_regex_set_options | If 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_split | This function no longer returns false on failure. | |
mb_str_split | 現(xiàn)在 encoding 可以為 null。 | |
metaphone | The function returned false on failure. | |
mhash | key is now nullable. | |
msg_get_queue | On success, this function returns a SysvMessageQueue instance now; previously, a resource was returned. | |
msg_receive | queue expects a SysvMessageQueue instance now; previously, a resource was expected. | |
msg_remove_queue | queue expects a SysvMessageQueue instance now; previously, a resource was expected. | |
msg_send | queue expects a SysvMessageQueue instance now; previously, a resource was expected. | |
msg_set_queue | queue expects a SysvMessageQueue instance now; previously, a resource was expected. | |
msg_stat_queue | queue expects a SysvMessageQueue instance now; previously, a resource was expected. | |
odbc_columns | schema, table and column are now nullable. | |
odbc_error | odbc is nullable now. | |
odbc_errormsg | odbc is nullable now. | |
odbc_exec | flags was removed. | |
odbc_fetch_row | row is nullable now. | |
odbc_procedurecolumns | Prior to this version, the function could only be called with either one or five arguments. | |
odbc_procedures | Prior to this version, the function could only be called with either one or four arguments. | |
odbc_tables | schema, table and types are now nullable. | |
openssl_pkey_new | 成功時此函數(shù)會返回 OpenSSLAsymmetricKey 的實例;在之前版本中,則會返回類似為 OpenSSL key 的 資源(resource)。 | |
openssl_sign | private_key accepts an OpenSSLAsymmetricKey or OpenSSLCertificate instance now; previously, a 資源(resource) of type OpenSSL key or OpenSSL X.509 was accepted. | |
openssl_x509_verify | certificate accepts an OpenSSLCertificate instance now; previously, a 資源(resource) of type OpenSSL X.509 was accepted. | |
openssl_x509_verify | public_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_str | result 是必須項。 | |
password_hash | 參數(shù) algo 可以為 null。 | |
password_hash | 失敗時 password_hash 不再返回 false。 | |
pg_version | connection is now nullable. | |
sapi_windows_vt100_support | enable is now nullable. | |
sem_acquire | semaphore expects a SysvSemaphore instance now; previously, a resource was expected. | |
sem_get | On success, this function returns a SysvSemaphore instance now; previously, a resource was returned. | |
sem_get | The type of auto_release has been changed from int to bool. | |
sem_release | semaphore expects a SysvSemaphore instance now; previously, a resource was expected. | |
sem_remove | semaphore expects a SysvSemaphore instance now; previously, a resource was expected. | |
shm_attach | size is nullable now. | |
shm_attach | On success, this function returns an SysvSharedMemory instance now; previously, a resource was returned. | |
shm_detach | shm expects a SysvSharedMemory instance now; previously, a resource was expected. | |
shm_get_var | shm expects a SysvSharedMemory instance now; previously, a resource was expected. | |
shm_has_var | shm expects a SysvSharedMemory instance now; previously, a resource was expected. | |
shm_put_var | shm expects a SysvSharedMemory instance now; previously, a resource was expected. | |
shm_remove | shm expects a SysvSharedMemory instance now; previously, a resource was expected. | |
shm_remove_var | shm expects a SysvSharedMemory instance now; previously, a resource was expected. | |
shmop_close | shmop expects a Shmop instance now; previously, a resource was expected. | |
shmop_delete | shmop expects a Shmop instance now; previously, a resource was expected. | |
shmop_open | On success, this function returns an Shmop instance now; previously, a resource was returned. | |
shmop_read | shmop expects a Shmop instance now; previously, a resource was expected. | |
shmop_size | shmop expects a Shmop instance now; previously, a resource was expected. | |
shmop_write | Prior to PHP 8.0.0, false was returned on failure. | |
shmop_write | shmop expects a Shmop instance now; previously, a resource was expected. | |
socket_accept | 成功時,該函數(shù)現(xiàn)在返回一個 Socket 實例;在此之前,返回值是一個 resource。 | |
socket_addrinfo_bind | On 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_connect | On success, this function returns a Socket instance now; previously, a resource was returned. | |
socket_addrinfo_explain | 現(xiàn)在 address 是 AddressInfo 實例, 之前是 resource。 | |
socket_addrinfo_lookup | service is nullable now. | |
socket_addrinfo_lookup | On 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_connect | port 允許為空。 | |
socket_create | 創(chuàng)建成功時,該函數(shù)現(xiàn)在返回一個 Socket 實例; 在此之前,返回的是一個 resource。 | |
socket_create_listen | On success, this function returns a Socket instance now; previously, a resource was returned. | |
socket_create_pair | pair 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_stream | On success, this function returns a Socket instance now; previously, a resource was returned. | |
socket_last_error | socket 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_sendto | port 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_write | length is nullable now. | |
socket_write | 現(xiàn)在 socket 是 Socket 實例, 之前是 resource。 | |
socket_wsaprotocol_info_export | 現(xiàn)在 socket 是 Socket 實例, 之前是 resource。 | |
socket_wsaprotocol_info_import | On success, this function returns a Socket instance now; previously, a resource was returned. | |
soundex | Prior to this version, calling the function with an empty string returned false for no particular reason. | |
sprintf | 此函數(shù)失敗時不再返回 false 。 | |
str_word_count | characters 可為空(Nullable)類型。 | |
stream_context_create | 現(xiàn)在 options 和 params 可以為 null。 | |
stream_context_get_default | options is now nullable. | |
stream_copy_to_stream | length is now nullable. | |
stream_get_contents | 現(xiàn)在 length 可以為 null。 | |
stream_socket_accept | 現(xiàn)在 timeout 可以為 null。 | |
stream_socket_client | timeout and context are now nullable. | |
stream_socket_enable_crypto | session_stream is now nullable. | |
stream_socket_server | context is nullable now. | |
substr | 函數(shù)將返回一個空字符串, 在此之前返回 false 。 | |
substr | 現(xiàn)在 length 允許為 null。 | |
substr_count | length 可以為空(nullable)。 | |
touch | mtime 和 atime 現(xiàn)在可以為空。 | |
uasort | 如果 callback 接受引用傳遞參數(shù),該方法將會拋出 E_WARNING。 | |
uksort | 如果 callback 接受引用傳遞參數(shù),該方法將會拋出 E_WARNING。 | |
usort | 如果 callback 接受引用傳遞參數(shù),該方法將會拋出 E_WARNING。 | |
vsprintf | 此函數(shù)失敗時不再返回 false 。 | |
GlobIterator::__construct | Now throws a ValueError if directory is an empty string; previously it threw a RuntimeException. | |
IntlTimeZone::getIDForWindowsID | region is now nullable. | |
LimitIterator::__construct | Now throws a ValueError if limit is less than -1; previously it threw a RuntimeException. | |
LimitIterator::__construct | Now throws a ValueError if offset is less than 0; previously it threw a RuntimeException. | |
Locale::getDisplayLanguage | displayLocale is nullable now. | |
Locale::getDisplayName | displayLocale is nullable now. | |
Locale::getDisplayRegion | displayLocale is nullable now. | |
Locale::getDisplayScript | displayLocale is nullable now. | |
Locale::getDisplayVariant | displayLocale is nullable now. | |
NumberFormatter::create | pattern is nullable now. | |
Phar::addFile | localName 現(xiàn)在可以為空。 | |
Phar::buildFromIterator | baseDirectory is now nullable. | |
Phar::compress | extension is now nullable. | |
Phar::convertToData | format, compression, and extension are now nullable. | |
Phar::convertToExecutable | format, compression, and localName are now nullable. | |
Phar::createDefaultStub | index and webIndex are now nullable. | |
Phar::decompress | extension is now nullable. | |
Phar::getMetadata | The parameter unserializeOptions has been added. | |
Phar::setDefaultStub | webIndex is nullable now. | |
Phar::setSignatureAlgorithm | privateKey is now nullable. | |
Phar::webPhar | fileNotFoundScript, mimeTypes and rewrite are nullable now. | |
PharData::addFile | localName is now nullable. | |
PharData::buildFromIterator | baseDirectory is now nullable. | |
PharData::compress | extension is now nullable. | |
PharData::convertToData | format, compression, and extension are now nullable. | |
PharData::convertToExecutable | format, compression, and localName are now nullable. | |
PharData::decompress | extension is now nullable. | |
PharData::setDefaultStub | webIndex is nullable now. | |
PharData::setSignatureAlgorithm | privateKey is now nullable. | |
PharFileInfo::getMetadata | The parameter unserializeOptions has been added. | |
PharFileInfo::isCompressed | compression is now nullable. | |
RecursiveDirectoryIterator::__construct | Now throws a ValueError if directory is an empty string; previously it threw a RuntimeException. | |
RecursiveIteratorIterator::getSubIterator | level is now nullable. | |
ReflectionClass::getConstants | 添加 filter 。 | |
ReflectionClass::getReflectionConstants | filter has been added. | |
ReflectionParameter::getDefaultValue | This method now allows getting the default value of parameters of built-in functions and built-in class methods. Previously, a ReflectionException was thrown. | |
ReflectionParameter::getDefaultValueConstantName | This method now allows getting the default values' constant names of built-in functions and built-in class methods. Previously, a ReflectionException was thrown. | |
ReflectionProperty::getValue | object is nullable now. | |
ReflectionProperty::isInitialized | object is nullable now. | |
SimpleXMLElement::asXML | filename is nullable now. | |
SoapClient::__doRequest | The type of oneWay is bool now; formerly it was int. | |
SoapClient::__setCookie | value is now nullable. | |
SoapServer::handle | request is now nullable. | |
SplFileInfo::getFileInfo | class is now nullable. | |
SplFileInfo::getPathInfo | class is now nullable. | |
SplFileInfo::openFile | context is now nullable. | |
SplFixedArray::__construct | Now throws a ValueError if size is a negative; previously it threw a InvalidArgumentException. | |
tidy::__construct | filename, config, encoding and useIncludePath are nullable now. | |
tidy::parseFile | config and encoding are nullable now. | |
tidy::parseString | config and encoding are nullable now. | |
tidy::repairFile | config and encoding are nullable now. | |
tidy::repairFile | tidy::repairFile is a static method now. | |
tidy::repairString | This function no longer accepts the useIncludePath parameter. | |
tidy::repairString | config and encoding are nullable now. | |
tidy::repairString | tidy::repairString is a static method now. | |
XMLReader::getAttribute | This function can no longer return false. | |
XMLReader::getAttributeNs | This function can no longer return false. | |
XMLReader::lookupNamespace | This function can no longer return false. | |
XMLReader::next | name is nullable now. | |
XMLReader::open | XMLReader::open is now declared as static method, but can still be called on an XMLReader instance. | |
XMLReader::XML | XMLReader::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::flush | This function can no longer return false. | |
XMLWriter::fullEndElement | 現(xiàn)在 writer 需要 XMLWriter 實例, 之前需要的是 resource。 | |
XMLWriter::openMemory | This function returns now an XMLWriter instance on success. Previouly, a 資源(resource) has been returned in this case. | |
XMLWriter::openUri | This 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::startAttributeNs | prefix 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::writeDtdEntity | publicId, 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.4 | proc_open | 為 other_options 參數(shù)增加 create_new_console 選項。 |
7.4.0 | array_merge | 允許不帶參數(shù)調(diào)用,之前版本至少需要一個參數(shù)。 |
array_merge_recursive | 允許不傳遞參數(shù)調(diào)用,之前的版本中至少需要一個參數(shù)。 | |
get_magic_quotes_gpc | 該函數(shù)已被廢棄。 | |
gzread | This functions returns false on failure now; previously 0 was returned. | |
gzwrite | This 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 。 | |
imagecropauto | The 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. | |
imagecropauto | The 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_result | This function has been deprecated. | |
ldap_control_paged_result_response | This 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_array | The flags parameter was added. | |
proc_open | 為 other_options 參數(shù)增加 create_process_group 選項。 | |
proc_open | proc_open 的 cmd 參數(shù)現(xiàn)在也允許數(shù)組類型。 | |
Locale::lookup | defaultLocale is nullable now. | |
SplFileObject::fgetcsv | The escape parameter now also accepts an empty string to disable the proprietary escape mechanism. | |
SplFileObject::fputcsv | The escape parameter now also accepts an empty string to disable the proprietary escape mechanism. | |
SplFileObject::fwrite | The function now returns false instead of zero on failure. | |
SplFileObject::getCsvControl | The escape character can now be an empty string. | |
SplFileObject::setCsvControl | The escape parameter now also accepts an empty string to disable the proprietary escape mechanism. | |
SQLite3Stmt::bindParam | param now also supports the @param notation. | |
SQLite3Stmt::bindValue | param now also supports the @param notation. | |
7.3.24, 7.4.12 | tidyNode::isHtml | This function has been fixed to have reasonable behavior. Previously, almost any node was reported as being an HTML node. |
7.3.14, 7.4.2 | dba_open | The lmdb driver now supports an additional $mapsize parameter. |
7.3.0 | apache_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è)置,還可以獲取當(dāng)前的小數(shù)點保留位數(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_get | mode 參數(shù)變?yōu)榭蛇x,之前是強制性的。 | |
ftp_nb_put | mode 參數(shù)為可選,之前版本中為必填。 | |
ftp_put | mode 參數(shù)為可選,之前版本中為必選。 | |
getallheaders | 該函數(shù)可以在 FPM SAPI 中使用。 | |
is_countable | is_countable has been added. | |
json_decode | JSON_THROW_ON_ERROR options was added. | |
json_encode | options 參數(shù)新增 JSON_THROW_ON_ERROR 常量。 | |
list | 支持在數(shù)組解構(gòu)時傳引用。 | |
password_hash | 增加 PASSWORD_ARGON2ID,支持 Argon2id 密碼算法。 | |
preg_quote | 字符 # 被增加為需要轉(zhuǎn)義的。 | |
session_set_cookie_params | 增加 options 參數(shù), 可以通過傳入一個關(guān)聯(lián)數(shù)組對各個選項進行設(shè)置。 同時,通過使用這個參數(shù)還可以對 SameSite cookie 進行設(shè)置。 | |
setcookie | An 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)建文件,需要等到所有句柄都關(guān)閉才可以。 | |
var_export | 現(xiàn)在將 stdClass 對象作為數(shù)組類型轉(zhuǎn)換為對象輸出( (object) array( ... )),而不是使用不存在的 stdClass::__setState 方法。實際效果是,現(xiàn)在 stdClass 是可輸出的,生成的代碼甚至可以在早期的 PHP 版本上運行。 | |
7.3 | ldap_add | Support for controls added |
ldap_compare | Support for controls added | |
ldap_delete | Support for controls added | |
ldap_exop | Support for serverctrls added | |
ldap_exop_passwd | Support for controls added | |
ldap_list | Support for controls added | |
ldap_mod_add | Support for controls added | |
ldap_mod_del | Support for controls added | |
ldap_mod_replace | Support for controls added | |
ldap_modify_batch | Support for controls added | |
ldap_mod_add_ext | Support for controls added | |
ldap_mod_del_ext | Support for controls added | |
ldap_mod_replace_ext | Support for controls added | |
ldap_parse_result | Support for controls added | |
ldap_read | Support for controls added | |
ldap_rename | Support for controls added | |
ldap_rename_ext | Support for controls added | |
ldap_search | Support for controls added | |
7.2.19, 7.3.6, 7.4.0 | DatePeriod::__construct | recurrences must be greater than 0 now. |
7.2.19, 7.3.6 | SplFileObject::__toString | Changed from an alias of SplFileObject::current to an alias of SplFileObject::fgets. |
7.2.18, 7.3.5 | substr_compare | offset 現(xiàn)在可能等于 main_str。 |
7.2.0 | array_unique | 如果 flags 是 SORT_STRING, 之前會復(fù)制 array 并移除非唯一數(shù)組(之后并不打包數(shù)組), 現(xiàn)在是通過添加唯一元素來生成新數(shù)組。這可能會導(dǎo)致不同的數(shù)字索引。 |
bcmod | 新增參數(shù) scale。 | |
bcmod | 現(xiàn)在 num1 和 num2 不會截斷成整數(shù)。 所以現(xiàn)在 bcmod 的表現(xiàn)更接近 fmod 而不是 % 操作符。 | |
count | 當(dāng) value 參數(shù)傳入了無效的 countable 類型, count 現(xiàn)在會產(chǎn)生警告。 | |
date_parse | 返回數(shù)組的 zone 鍵現(xiàn)在代表秒,而不是分鐘。 并且正負符號已反轉(zhuǎn),例如:之前是 -120 現(xiàn)在是 7200。 | |
date_parse_from_format | The 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_data | file 參數(shù)現(xiàn)在起支持本地文件和流式資源。 | |
exif_read_data | 新增了以下 EXIF 格式的支持: Samsung DJI Panasonic Sony Pentax Minolta Sigma/Foveon AGFA Kyocera Ricoh Epson | |
gettype | 現(xiàn)在,已關(guān)閉的資源報告為 'resource (closed)'。 此前,已關(guān)閉的資源報告為 '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 | 當(dāng)使用 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_ascii | INTL_IDNA_VARIANT_2003 已被棄用; 可以使用 INTL_IDNA_VARIANT_UTS46 代替。 | |
idn_to_utf8 | INTL_IDNA_VARIANT_2003 已被棄用; 可以使用 INTL_IDNA_VARIANT_UTS46 代替。 | |
json_decode | JSON_INVALID_UTF8_IGNORE, and JSON_INVALID_UTF8_SUBSTITUTE options were added. | |
json_encode | options 參數(shù)新增 JSON_INVALID_UTF8_IGNORE 和 JSON_INVALID_UTF8_SUBSTITUTE 常量。 | |
現(xiàn)在 additional_headers 參數(shù)開始支持 array。 | ||
mb_convert_encoding | 現(xiàn)在該函數(shù)的 string 參數(shù)同時能接受 array 類型。 在此之前,僅支持 string。 | |
number_format | number_format 現(xiàn)在無法返回 -0,之前可能返回 -0,因為 number 可能會是 -0.01。 | |
openssl_pkcs7_verify | 新增 p7bfilename 參數(shù)。 | |
pack | float 和 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_abort | The return type of this function is bool now. Formerly, it has been void. | |
session_module_name | 不允許設(shè)置模塊名稱為 "user"。 在之前的版本中,如果設(shè)置為 "user",那么會被靜默的忽略到。 | |
session_name | session_name 函數(shù)會檢查會話狀態(tài), 之前的版本僅僅檢查 cookie 狀態(tài)。 所以,舊版本的 PHP 允許你在調(diào)用 session_start 函數(shù)之后再調(diào)用 session_name 函數(shù), 新版本的 PHP 不再允許這樣做了。 | |
session_reset | The return type of this function is bool now. Formerly, it has been void. | |
session_set_cookie_params | 成功時返回 true, 或者在失敗時返回 false。 之前版本中是返回 void 的。 | |
session_write_close | The return type of this function is bool now. Formerly, it has been void. | |
unpack | float and double types supports both Big Endian and Little Endian. | |
utf8_decode | This 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_encode | This 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::openBlob | The flags parameter has been added, allowing to write BLOBs; formerly only reading was supported. | |
7.1.5 | IntlDateFormatter::format | Support for providing general DateTimeInterface objects to the datetime parameter was added. Formerly, only proper DateTime objects were supported. |
7.1.4 | PDO::sqliteCreateFunction | The flags parameter has been added. |
SQLite3::createFunction | The flags parameter has been added. | |
7.1.0 | DateInterval::format | The 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)境變量的關(guān)聯(lián)數(shù)組 array。 | |
getopt | 添加 rest_index 參數(shù)。 | |
grapheme_extract | Support for negative offsets has been added. | |
grapheme_stripos | Support for negative offsets has been added. | |
grapheme_strpos | Support for negative offsets has been added. | |
hash_algos | 加入 sha512/224,sha512/256,sha3-224,sha3-256,sha3-384 以及 sha3-512 算法的支持。 | |
iconv_strpos | Support for negative offsets has been added. | |
json_decode | An empty JSON key ("") can be encoded to the empty object property instead of using a key with value _empty_. | |
json_encode | options 參數(shù)新增 JSON_UNESCAPED_LINE_TERMINATORS 常量。 | |
json_encode | 對 Double 的值進行編碼時,使用 serialize_precision 代替 precision。 | |
list | 現(xiàn)在可以指定 list 中的鍵。 這就可以解構(gòu)非數(shù)字鍵或者無順序的數(shù)組。 | |
long2ip | 參數(shù) proper_address 的類型從 string 改成 integer。 | |
mb_ereg | mb_ereg will now set matches to an empty array, if nothing matched. Formerly, matches was not modified in that case. | |
mb_ereg_replace | The e modifier has been deprecated. | |
mb_ereg_replace | The function checks whether string is valid for the current encoding. | |
mb_ereg_replace_callback | The function checks whether string is valid for the current encoding. | |
mb_ereg_search_setpos | Support for negative offsets has been added. | |
mb_eregi | mb_eregi will now set matches to an empty array, if nothing matched. Formerly, matches was not modified in that case. | |
mb_eregi_replace | The function checks whether string is valid for the current encoding. | |
mb_eregi_replace | The 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 | 當(dāng) 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。 | |
unpack | The optional offset has been added. | |
ReflectionType::__toString | ReflectionType::__toString has been deprecated. | |
SessionHandler::gc | Prior to this version, the function returned true on success. | |
SessionHandlerInterface::gc | Prior to this version, the function returned true on success. | |
7.1 | DateTime::__construct | 微秒部分不再是 '00000' 了,而是真實的微秒數(shù)據(jù)。 |
7.0.15,7.1.1 | pack | 添加了 “e”,“E”,“g” 和 “G” 代碼以啟用 float 和 double 的字節(jié)順序支持。 |
7.0.11 | iconv_substr | 如果 str 等長于 offset 個字符, 將返回空字符串。之前的版本里,這種情況是會返回 false 的。 |
7.0.10 | SplFileObject::getCsvControl | Added the escape character to the returned array. |
SQLite3::__construct | The filename can now be empty to use a private, temporary on-disk database. | |
7.0.7 | curl_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.0 | assert | assert 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_decode | An empty PHP string or value that after casting to string is an empty string (NULL, FALSE) results in JSON syntax error. | |
json_decode | Rejected RFC 7159 incompatible number formats - top level (07, 0xff, .1, -.1) and all levels ([1.], [1.e1]) | |
mktime | is_dst參數(shù)已經(jīng)被移除。 | |
openssl_open | 添加了 iv 參數(shù) | |
openssl_seal | 添加 iv 變量。 | |
session_start | 新加 options 參數(shù)。 | |
5.6.5 | crypt | When 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.0 | crypt | Raise E_NOTICE security warning if salt is omitted. |
htmlentities | The default value for the encoding parameter was changed to be the value of the default_charset configuration option. | |
htmlspecialchars | The default value for the encoding parameter was changed to be the value of the default_charset configuration option. | |
json_decode | Invalid non-lowercased variants of the true, false and null literals are no longer accepted as valid input, and will generate warnings. | |
ReflectionClass::newInstanceWithoutConstructor | All internal classes can now be instantiated except for those declared final. | |
5.5.38, 5.6.24, 7.0.9 | getenv | 添加 local_only 參數(shù)。 |
5.5.21 | crypt | When 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.1 | hex2bin | 如果輸入的字符串是無效的十六進制字符串則拋出一個警告, |
5.5.0/PECL 3.0.0 | IntlDateFormatter::create | An 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::setCalendar | It became possible to pass an IntlCalendar object. | |
5.5.0 | empty | empty 現(xiàn)在支持表達式了,而不僅僅是變量。 |
ip2long | Prior 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.11 | escapeshellcmd | 感嘆號會被空格所替換。 |
5.4.32, 5.5.16 | ucwords | 增加了 delimiters 參數(shù)。 |
5.4.8 | assert | 增加了參數(shù) description。 description 現(xiàn)在也作為第四個參數(shù)提供給 ASSERT_CALLBACK 模式里的回調(diào)函數(shù)。 |
mb_strcut | Passing NULL as length extracts all bytes to the end of the string. Prior to this version NULL was treated the same as 0. | |
mb_substr | length 傳入 NULL,則從 start 提取到字符串的結(jié)尾處。 在之前的版本里, NULL 會被當(dāng)作 0 來處理。 | |
5.4.7 | parse_url | 修復(fù)了 host 在 協(xié)議 省略時的識別。 |
5.4.4 | hex2bin | 如果輸入的字符串有多余將拋出異常。 PHP 5.4.0 起字符串將被靜默地接受,但是最后的字節(jié)會被截斷。 |
5.4.0 | date_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_table | The constants ENT_HTML401, ENT_XML1, ENT_XHTML and ENT_HTML5 were added. | |
get_html_translation_table | The default value for the encoding parameter was changed to UTF-8. | |
get_magic_quotes_runtime | 總是返回 false,因為魔術(shù)引號(magic quotes)功能已經(jīng)從 PHP 中移除。 | |
htmlentities | encoding 參數(shù)的默認值改成 UTF-8。 | |
htmlentities | 增加常量 ENT_SUBSTITUTE、 ENT_DISALLOWED、 ENT_HTML401、 ENT_XML1、 ENT_XHTML、 ENT_HTML5。 | |
htmlspecialchars | encoding 參數(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_decode | The options parameter was added. | |
json_decode | JSON_BIGINT_AS_STRING, and JSON_OBJECT_AS_ARRAY options were added. | |
number_format | This 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。 | |
scandir | sorting_order now accepts constants. Any nonzero value caused descending order in previous versions. | |
5.3.9 | DateTime::createFromFormat | 新增 format 格式字符串中對于 + 格式字符的支持。 |
5.3.7 | crypt | Added $2x$ and $2y$ Blowfish modes to deal with potential high-bit attacks. |
5.3.4 | get_html_translation_table | The encoding parameter was added. |
rawurlencode | 因為 rawurlencode 使用了 EBCDIC,所以波浪線字符不會再被編碼。 | |
strip_tags | strip_tags ignores self-closing XHTML tags in allowable_tags. | |
5.3.3 | openssl_decrypt | 添加 iv 參數(shù)。 |
parse_url | 在 URL 解析失敗時將不會產(chǎn)生 E_WARNING 級別的錯誤。 | |
5.3.2 | crypt | 修正了 Blowfish 算法由于非法循環(huán)導(dǎo)致的問題,返回“失敗”字符串(“*0” 或 “*1”)而不是轉(zhuǎn)而使用 DES 算法。 |
crypt | 基于 Ulrich Drepper 的實現(xiàn),新增基于 SHA-256 算法和 SHA-512 算法的 crypt。 | |
flock | 在文件資源句柄關(guān)閉時不再自動解鎖。現(xiàn)在要解鎖必須手動進行。 | |
5.3.1 | get_defined_constants | 僅作用于 Windows:內(nèi)核常量歸類到 Core,之前是 mhash。 |
5.3.0 起 | get_class | object 默認參數(shù)現(xiàn)在是 null ,所以,現(xiàn)在傳入 null 到 object 參數(shù)時,和沒傳參數(shù)的結(jié)果一樣。 |
5.3.0 | DateTime::__construct | 如果 time 參數(shù)不是一個有效的 日期/時間格式, 會拋出異常。 在之前的版本中是會發(fā)出一個錯誤。 |
DateTimeZone::listIdentifiers | 添加可選的 what 和 country 參數(shù)。 | |
acosh | This function is now available on all platforms | |
asinh | 此函數(shù)在所有平臺上均可用 | |
atanh | 此函數(shù)在所有平臺上都可以用了 | |
checkdnsrr | 這個函數(shù)在Windows平臺上也可以使用了。 | |
clearstatcache | 增加了可選的 clear_realpath_cache 和 filename 參數(shù). | |
crypt | PHP 現(xiàn)在包含了它自己的 MD5 Crypt 實現(xiàn),包括標(biāo)準 DES 算法,擴展的 DES 算法以及 Blowfish 算法。如果系統(tǒng)缺乏相應(yī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_arg | If 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_args | If 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_args | This function can now be used in parameter lists. | |
func_num_args | If 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_var | get_cfg_var 被修復(fù),能夠返回 "array" 的 ini 選項。 | |
get_defined_constants | 內(nèi)核常量歸類為 Core,之前是 internal。在 Windows 上,內(nèi)核常量歸類到 mhash。 | |
get_object_vars | This function now returns NULL if the object isn't an object. | |
getimagesize | Added icon support. | |
getmxrr | Windows 平臺上也能用這個函數(shù)了。 | |
htmlentities | 增加常量 ENT_IGNORE。 | |
htmlspecialchars | 增加常量 ENT_IGNORE。 | |
imagecolorclosesthwb | 在 Windows 平臺上可用 | |
imagefilter | Pixelation support (IMG_FILTER_PIXELATE) was added. | |
ini_get | 當(dāng)配置項不存在,之前會返回空字符串,現(xiàn)在會返回 false。 | |
ini_get_all | 增加參數(shù) details。 | |
json_decode | Added the optional depth. The default recursion depth was increased from 128 to 512 | |
link | 該功能在 Windows 平臺下開始有效(Vista、 Server 2008 或更高版本)。 | |
linkinfo | Windows 平臺上開始可用(Vista、Server 2008 或更高版本)。 | |
log1p | 此函數(shù)在所有平臺上均可用 | |
mktime | mktime 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_exists | This 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。 | |
setlocale | This 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.11 | get_defined_constants | categorize 參數(shù)現(xiàn)在可以合適得被處理。 在此之前,categorize 被解釋為 !is_null($categorize),導(dǎo)致任何非 null 的值會強制常量分類。 |
5.2.10 | ip2long | 再此之前的版本, ip2long 有時會返回即使這不是一個IPV4的標(biāo)準地址的數(shù)字地址。 |
5.2.6 | fopen | 增加了選項 'c' 和 'c+' |
5.2.5 | addcslashes | The escape sequences \v and \f were added. |
imagefilter | Alpha support for IMG_FILTER_COLORIZE was added. | |
5.2.4 | checkdnsrr | 增加了TXT的記錄類型。 |
5.2.3 | getimagesize | Read errors generated by this function downgraded to E_NOTICE from E_WARNING. |
htmlentities | 增加參數(shù) double_encode。 | |
htmlspecialchars | 增加參數(shù) double_encode。 | |
json_decode | The nesting limit was increased from 20 to 128 | |
PDOStatement::getColumnMeta | table 字段 | |
5.2.2 | ftp_ssl_connect | 以前版本中,如果無法使用 SSL 連接,將會返回一個非 SSL 的連接, 在 5.2.2 版本中修改為返回 false |
phpinfo | 增加了“已加載的配置文件”信息,之前只存在“配置文件路徑(php.ini)"。 | |
proc_terminate | 之前的版本被用來銷毀進程 resource。 | |
token_get_all | Line numbers are returned in element 2 | |
5.2.1 | iterator_to_array | 添加了 use_keys 參數(shù)。 |
json_decode | Added support for JSON decoding of basic types. | |
memory_get_peak_usage | 使用此函數(shù)無需在編譯時加上 --enable-memory-limit 選項。 | |
memory_get_usage | 不需要在編譯時使用 --enable-memory-limit 選項就能夠使用這個函數(shù)。 | |
mt_srand | The 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.0 | base64_decode | 增加了 strict 。 |
curl_multi_info_read | msgs_in_queue被加入。 | |
imagettftext | It 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::execute | input_parameters 中的鍵名必須和 SQL 中聲明的相匹配。PHP 5.2.0 之前默認忽略。 | |
5.1.3 | curl_getinfo | 引入CURLINFO_HEADER_OUT. |
get_headers | 自 PHP 5.1.3 起本函數(shù)使用默認的流上下文,其可以用 stream_context_get_default 函數(shù)設(shè)定和修改。 | |
http_build_query | 方括號也會被轉(zhuǎn)義。 | |
5.1.2 | date_default_timezone_set | 本版本開始驗證 timezone_identifier 參數(shù)。 |
http_build_query | 加入了參數(shù) arg_separator。 | |
parse_url | 增加了參數(shù) component。 | |
5.1.1 | date | format 參數(shù)標(biāo)準的可用日期/時間格式常量見: 常量 |
5.1.0 | class_implements | 增加了允許參數(shù)class為字符串的選項。增加了autoload參數(shù)。 |
class_parents | 增加了允許參數(shù)class為字符串的選項。增加了autoload參數(shù)。 | |
ctype_digit | 在 PHP 5.1.0 之前,當(dāng) 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ū)錯誤。 | |
mktime | is_dst 參數(shù)被廢棄。出錯時函數(shù)返回 false 而不再是 -1。修正了本函數(shù)可以接受年月日參數(shù)全為零。 | |
mktime | 現(xiàn)在發(fā)布 E_STRICT 和 E_NOTICE 時區(qū)錯誤。 | |
mktime | When 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.0 | checkdnsrr | 增加了AAAA的記錄類型。 |
fgetss | 參數(shù) length 從 此開始可選。 | |
file_put_contents | Added context support | |
is_executable | is_executable 開始可用以于 Windows。 | |
jdtojewish | 增加了參數(shù) fl。 | |
opendir | path 支持 ftp:// URL wrapper | |
socket_create | 增加 AF_INET6 支持。 | |
strip_tags | strip_tags 變?yōu)槎M制安全的。 | |
strrpos | 參數(shù) needle 可以是一個多字符的字符串。 | |
strrpos | 引入 offset 參數(shù)。 |