更新日誌
對繫結的擴充套件的函式有以下更新。
Version | Function | Description |
---|---|---|
Since 5.0 | cal_info | 參數calendar作為可選項,預設時預設值為"所有曆法"。 |
Since 4.3.0 | easter_date | year參數可選,預設的預設值是當年。 |
easter_days | 參數year 可選,預設預設值是當年。 | |
easter_days | 引入參數 method。 | |
Since 4.2.0 | srand | seed 成為可選,省略時會預設使用隨機值。 |
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 參數。 |
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 3.0.0 | IntlDateFormatter::format | Support for providing IntlCalendar objects to the datetime parameter was added. |
8.2.0 | DateInterval::__construct | Only the y to f, invert, and days will be visible, including a new from_string boolean property. |
DateInterval::createFromDateString | Only the from_string and date_string properties will be visible when a DateInterval is created with this method. | |
DateTime::format | The format characters X and x have been added. | |
DateTimeImmutable::createFromFormat | The X and x format specifiers have been added. | |
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 上呼叫此函式。 在 object 優先使用 get_mangled_object_vars 或者使用 ArrayIterator。 | |
end | 棄用在 object 上呼叫此函式。 在 object 優先使用 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 上呼叫此函式。 在 object 優先使用 get_mangled_object_vars 或者使用 ArrayIterator。 | |
ldap_add | 現在 ldap 參數接受 LDAP\Connection 實例,之前接受 資源(resource)。 | |
ldap_add_ext | 現在 ldap 參數接受 LDAP\Connection 實例,之前接受 資源(resource)。 | |
ldap_add_ext | Returns an LDAP\Result instance now; previously, a 資源(resource) was returned. | |
ldap_bind_ext | Returns an LDAP\Result instance now; previously, a 資源(resource) was returned. | |
ldap_bind_ext | 現在 ldap 參數接受 LDAP\Connection 實例,之前接受 資源(resource)。 | |
ldap_compare | 現在 ldap 參數接受 LDAP\Connection 實例,之前接受 資源(resource)。 | |
ldap_connect | Returns an LDAP\Connection instance now; previously, a 資源(resource) was returned. | |
ldap_count_entries | The result parameter expects an LDAP\Result instance now; previously, a 資源(resource) was expected. | |
ldap_count_entries | 現在 ldap 參數接受 LDAP\Connection 實例,之前接受 資源(resource)。 | |
ldap_count_references | The result parameter expects an LDAP\Result instance now; previously, a 資源(resource) was expected. | |
ldap_count_references | 現在 ldap 參數接受 LDAP\Connection 實例,之前接受 資源(resource)。 | |
ldap_delete | 現在 ldap 參數接受 LDAP\Connection 實例,之前接受 資源(resource)。 | |
ldap_delete_ext | 現在 ldap 參數接受 LDAP\Connection 實例,之前接受 資源(resource)。 | |
ldap_delete_ext | Returns an LDAP\Result instance now; previously, a 資源(resource) was returned. | |
ldap_errno | 現在 ldap 參數接受 LDAP\Connection 實例,之前接受 資源(resource)。 | |
ldap_error | 現在 ldap 參數接受 LDAP\Connection 實例,之前接受 資源(resource)。 | |
ldap_exop | 現在 ldap 參數接受 LDAP\Connection 實例,之前接受 資源(resource)。 | |
ldap_exop_passwd | 現在 ldap 參數接受 LDAP\Connection 實例,之前接受 資源(resource)。 | |
ldap_exop_refresh | 現在 ldap 參數接受 LDAP\Connection 實例,之前接受 資源(resource)。 | |
ldap_exop_whoami | 現在 ldap 參數接受 LDAP\Connection 實例,之前接受 資源(resource)。 | |
ldap_first_attribute | The entry parameter expects an LDAP\ResultEntry instance now; previously, a 資源(resource) was expected. | |
ldap_first_attribute | 現在 ldap 參數接受 LDAP\Connection 實例,之前接受 資源(resource)。 | |
ldap_first_entry | Returns an LDAP\ResultEntry instance now; previously, a 資源(resource) was returned. | |
ldap_first_entry | The result parameter expects an LDAP\Result instance now; previously, a 資源(resource) was expected. | |
ldap_first_entry | 現在 ldap 參數接受 LDAP\Connection 實例,之前接受 資源(resource)。 | |
ldap_free_result | The result parameter expects an LDAP\Result instance now; previously, a 資源(resource) was expected. | |
ldap_get_attributes | 現在 ldap 參數接受 LDAP\Connection 實例,之前接受 資源(resource)。 | |
ldap_get_attributes | The entry parameter expects an LDAP\ResultEntry instance now; previously, a 資源(resource) was expected. | |
ldap_get_dn | 現在 ldap 參數接受 LDAP\Connection 實例,之前接受 資源(resource)。 | |
ldap_get_dn | The entry parameter expects an LDAP\ResultEntry instance now; previously, a 資源(resource) was expected. | |
ldap_get_entries | 現在 ldap 參數接受 LDAP\Connection 實例,之前接受 資源(resource)。 | |
ldap_get_entries | The result parameter expects an LDAP\Result instance now; previously, a 資源(resource) was expected. | |
ldap_get_option | 現在 ldap 參數接受 LDAP\Connection 實例,之前接受 資源(resource)。 | |
ldap_get_values | The entry parameter expects an LDAP\ResultEntry instance now; previously, a 資源(resource) was expected. | |
ldap_get_values | 現在 ldap 參數接受 LDAP\Connection 實例,之前接受 資源(resource)。 | |
ldap_get_values_len | 現在 ldap 參數接受 LDAP\Connection 實例,之前接受 資源(resource)。 | |
ldap_get_values_len | The entry parameter expects an LDAP\ResultEntry instance now; previously, a 資源(resource) was expected. | |
ldap_list | 現在 ldap 參數接受 LDAP\Connection 實例,之前接受 資源(resource)。 | |
ldap_list | Returns an LDAP\Result instance now; previously, a 資源(resource) was returned. | |
ldap_mod_add | 現在 ldap 參數接受 LDAP\Connection 實例,之前接受 資源(resource)。 | |
ldap_mod_del | 現在 ldap 參數接受 LDAP\Connection 實例,之前接受 資源(resource)。 | |
ldap_mod_replace | 現在 ldap 參數接受 LDAP\Connection 實例,之前接受 資源(resource)。 | |
ldap_modify_batch | 現在 ldap 參數接受 LDAP\Connection 實例,之前接受 資源(resource)。 | |
ldap_mod_add_ext | 現在 ldap 參數接受 LDAP\Connection 實例,之前接受 資源(resource)。 | |
ldap_mod_add_ext | Returns an LDAP\Result instance now; previously, a 資源(resource) was returned. | |
ldap_mod_del_ext | Returns an LDAP\Result instance now; previously, a 資源(resource) was returned. | |
ldap_mod_del_ext | 現在 ldap 參數接受 LDAP\Connection 實例,之前接受 資源(resource)。 | |
ldap_mod_replace_ext | 現在 ldap 參數接受 LDAP\Connection 實例,之前接受 資源(resource)。 | |
ldap_mod_replace_ext | Returns an LDAP\Result instance now; previously, a 資源(resource) was returned. | |
ldap_next_attribute | 現在 ldap 參數接受 LDAP\Connection 實例,之前接受 資源(resource)。 | |
ldap_next_attribute | The entry parameter expects an LDAP\ResultEntry instance now; previously, a 資源(resource) was expected. | |
ldap_next_entry | 現在 ldap 參數接受 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_parse_exop | 現在 ldap 參數接受 LDAP\Connection 實例,之前接受 資源(resource)。 | |
ldap_parse_exop | The result parameter expects an LDAP\Result instance now; previously, a 資源(resource) was expected. | |
ldap_parse_result | 現在 ldap 參數接受 LDAP\Connection 實例,之前接受 資源(resource)。 | |
ldap_parse_result | The result parameter expects an LDAP\Result instance now; previously, a 資源(resource) was expected. | |
ldap_read | 現在 ldap 參數接受 LDAP\Connection 實例,之前接受 資源(resource)。 | |
ldap_read | Returns an LDAP\Result instance now; previously, a 資源(resource) was returned. | |
ldap_rename | 現在 ldap 參數接受 LDAP\Connection 實例,之前接受 資源(resource)。 | |
ldap_rename_ext | Returns an LDAP\Result instance now; previously, a 資源(resource) was returned. | |
ldap_rename_ext | 現在 ldap 參數接受 LDAP\Connection 實例,之前接受 資源(resource)。 | |
ldap_sasl_bind | 現在 ldap 參數接受 LDAP\Connection 實例,之前接受 資源(resource)。 | |
ldap_search | Returns an LDAP\Result instance now; previously, a 資源(resource) was returned. | |
ldap_search | 現在 ldap 參數接受 LDAP\Connection 實例,之前接受 資源(resource)。 | |
ldap_set_option | 現在 ldap 參數接受 LDAP\Connection 實例,之前接受 資源(resource)。 | |
ldap_set_rebind_proc | 現在 ldap 參數接受 LDAP\Connection 實例,之前接受 資源(resource)。 | |
ldap_unbind | 現在 ldap 參數接受 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 上呼叫此函式。 在 object 優先使用 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 | 現在 connection 參數接受 PgSql\Connection 實例,之前接受 資源(resource)。 | |
pg_escape_identifier | 現在 connection 參數接受 PgSql\Connection 實例,之前接受 資源(resource)。 | |
pg_escape_literal | 現在 connection 參數接受 PgSql\Connection 實例,之前接受 資源(resource)。 | |
pg_execute | 現在返回 PgSql\Result 實例,之前返回 資源(resource) | |
pg_execute | 現在 connection 參數接受 PgSql\Connection 實例,之前接受 資源(resource)。 | |
pg_fetch_all_columns | 現在 result 參數接受 PgSql\Result 實例,之前接受 資源(resource)。 | |
pg_field_table | 現在 result 參數接受 PgSql\Result 實例,之前接受 資源(resource)。 | |
pg_field_type_oid | 現在 result 參數接受 PgSql\Result 實例,之前接受 資源(resource)。 | |
pg_lo_truncate | 現在 lob 接受 PgSql\Lob 實例,之前接受 資源(resource)。 | |
pg_parameter_status | 現在 connection 參數接受 PgSql\Connection 實例,之前接受 資源(resource)。 | |
pg_prepare | 現在返回 PgSql\Result 實例,之前返回 資源(resource) | |
pg_prepare | 現在 connection 參數接受 PgSql\Connection 實例,之前接受 資源(resource)。 | |
pg_query_params | 現在返回 PgSql\Result 實例,之前返回 資源(resource) | |
pg_query_params | 現在 connection 參數接受 PgSql\Connection 實例,之前接受 資源(resource)。 | |
pg_result_error_field | 現在 result 參數接受 PgSql\Result 實例,之前接受 資源(resource)。 | |
pg_send_execute | 現在 connection 參數接受 PgSql\Connection 實例,之前接受 資源(resource)。 | |
pg_send_prepare | 現在 connection 參數接受 PgSql\Connection 實例,之前接受 資源(resource)。 | |
pg_send_query_params | 現在 connection 參數接受 PgSql\Connection 實例,之前接受 資源(resource)。 | |
pg_set_error_verbosity | 現在 connection 參數接受 PgSql\Connection 實例,之前接受 資源(resource)。 | |
pg_socket | 現在 connection 參數接受 PgSql\Connection 實例,之前接受 資源(resource)。 | |
pg_transaction_status | 現在 connection 參數接受 PgSql\Connection 實例,之前接受 資源(resource)。 | |
pg_version | 現在 connection 參數接受 PgSql\Connection 實例,之前接受 資源(resource)。 | |
prev | 棄用在 object 上呼叫此函式。 在 object 優先使用 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 上呼叫此函式。 在 object 優先使用 get_mangled_object_vars 或者使用 ArrayIterator。 | |
snmp3_get | The auth_protocol now accepts "SHA256" and "SHA512" when supported by libnetsnmp. | |
snmp3_getnext | The auth_protocol now accepts "SHA256" and "SHA512" when supported by libnetsnmp. | |
snmp3_real_walk | The auth_protocol now accepts "SHA256" and "SHA512" when supported by libnetsnmp. | |
snmp3_walk | The auth_protocol now accepts "SHA256" and "SHA512" when supported by libnetsnmp. | |
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 | offset and length are now nullable. | |
OCILob::export | The OCI-Lob class was renamed to OCILob to align with PHP naming standards. | |
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 | length is now nullable. | |
OCILob::write | The OCI-Lob class was renamed to OCILob to align with PHP naming standards. | |
OCILob::writeTemporary | The OCI-Lob class was renamed to OCILob to align with PHP naming standards. | |
OCILob::writeToFile | offset and length are now nullable. | |
OCILob::writeToFile | The OCI-Lob class was renamed to OCILob to align with PHP naming standards. | |
8.0.0 | DateInterval::__construct | W can be combined with D. |
DateTime::format | The format character p has been added. | |
DateTime::format | Prior to this version, false was returned on failure. | |
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 | 現在 note_value 可為 null。 | |
array_column | index_key 參數指定的列中的對象不再強制轉換為字串,而是會拋出 TypeError。 | |
array_filter | callback 現在可為空(nullable)。 | |
array_filter | 如果 callback 接受引用傳遞參數,該方法將會拋出 E_WARNING。 | |
array_map | 如果 callback 接受引用傳遞參數,該方法將會拋出 E_WARNING。 | |
array_reduce | 如果 callback 接受引用傳遞參數,該方法將會拋出 E_WARNING。 | |
array_splice | length 現在可為空(nullable)。 | |
array_walk | 如果 callback 期待通過引用傳遞第二個和第三個參數, 此函式現在將拋出 E_WARNING。 | |
bcadd | 現在 scale 可以為 null。 | |
bccomp | 現在 scale 可以為 null。 | |
bcdiv | 現在 scale 可以為 null。 | |
bcmod | 現在 scale 可以為 null。 | |
bcmul | 現在 scale 可以為 null。 | |
bcpowmod | scale is now nullable. | |
bcscale | 現在 scale 可以為 null。 | |
bcsqrt | 現在 scale 可以為 null。 | |
bcsub | 現在 scale 可以為 null。 | |
bzdecompress | use_less_memory 的型別從 int 變為 bool。 之前預設值為 0。 | |
bzwrite | length 現在可為空(nullable)。 | |
call_user_func_array | args 鍵現在將被解釋為參數名稱,而不是被默默地忽略。 | |
com_event_sink | sink_interface is nullable now. | |
com_get_active_object | codepage is nullable now. | |
constant | 如果常量未定義,constant 現在會拋出 Error 異常。以前會產生一個 E_WARNING 級別的錯誤並返回 null。 | |
count | 當 value 參數傳入了無效的 countable 型別, count 現在會拋出 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 現在可為空(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 | broker expects an EnchantBroker instance now; previoulsy, a 資源(resource) was expected. | |
enchant_broker_request_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_request_pwl_dict | On success, this function returns an EnchantDictionary instance now; previoulsy, a 資源(resource) was retured. | |
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 | Prior to this version, the function returned false on failure. | |
enchant_dict_describe | dictionary expects an EnchantDictionary instance now; previoulsy, a 資源(resource) was expected. | |
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 現在可以為空。 | |
get_parent_class | object_or_class 參數現在僅接受對像或者有效的類名。 | |
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. | |
grapheme_substr | The function now consistently clamps out-of-bounds offsets to the string boundary. Previously, false was returned instead of the empty string in some cases. | |
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 | 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. | |
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 | 現在 encoding 可以為 null。 | |
mb_convert_encoding | 現在 from_encoding 可以傳入 null。 | |
mb_convert_encoding | 現在,當 from_encoding 為無效編碼時, mb_convert_encoding 會拋出 ValueError。 | |
mb_convert_encoding | 現在,當 to_encoding 為無效編碼時, mb_convert_encoding 會拋出 ValueError。 | |
mb_convert_kana | 現在 encoding 可以為 null。 | |
mb_encode_mimeheader | charset 和 transfer_encoding 現在可以為空。 | |
mb_encode_numericentity | 現在 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 | 參數 type 中的 "func_overload" 和 "func_overload_list" 不再被支援。 | |
mb_ord | 現在 encoding 可以為 null。 | |
mb_regex_encoding | 現在 encoding 可以為 null。 | |
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_regex_set_options | options is nullable now. | |
mb_scrub | 現在 encoding 可以為 null。 | |
mb_str_split | This function no longer returns false on failure. | |
mb_str_split | 現在 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 | 成功時此函式會返回 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 | public_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. | |
pack | 此函式不再在失敗時返回 false 。 | |
parse_str | result 是必須項。 | |
password_hash | 參數 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 | 成功時,該函式現在返回一個 Socket 實例;在此之前,返回值是一個 resource。 | |
socket_addrinfo_bind | 現在 address 是 AddressInfo 實例, 之前是 resource。 | |
socket_addrinfo_bind | 成功時,該函式現在返回一個 Socket 實例;在此之前,返回值是一個 resource。 | |
socket_addrinfo_connect | On success, this function returns a Socket instance now; previously, a resource was returned. | |
socket_addrinfo_connect | 現在 address 是 AddressInfo 實例, 之前是 resource。 | |
socket_addrinfo_explain | 現在 address 是 AddressInfo 實例, 之前是 resource。 | |
socket_addrinfo_lookup | On success, this function returns a array of AddressInfo instances now; previously, an array of resources was returned. | |
socket_addrinfo_lookup | service is nullable now. | |
socket_bind | 現在 socket 是 Socket 實例, 之前是 resource。 | |
socket_clear_error | 參數 socket 可以為 null。 | |
socket_clear_error | 現在 socket 是 Socket 實例, 之前是 resource。 | |
socket_close | 現在 socket 是 Socket 實例, 之前是 resource。 | |
socket_connect | 現在 socket 是 Socket 實例, 之前是 resource。 | |
socket_connect | port 允許為空。 | |
socket_create | 建立成功時,該函式現在返回一個 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 | 現在 socket 是 Socket 實例, 之前是 resource。 | |
socket_get_option | 現在 socket 是 Socket 實例, 之前是 resource。 | |
socket_getpeername | 現在 socket 是 Socket 實例, 之前是 resource。 | |
socket_getsockname | 現在 socket 是 Socket 實例, 之前是 resource。 | |
socket_import_stream | On success, this function returns a Socket instance now; previously, a resource was returned. | |
socket_last_error | socket 現在可為空(nullable)。 | |
socket_last_error | 現在 socket 是 Socket 實例, 之前是 resource。 | |
socket_listen | 現在 socket 是 Socket 實例, 之前是 resource。 | |
socket_read | 現在 socket 是 Socket 實例, 之前是 resource。 | |
socket_recv | 現在 socket 是 Socket 實例, 之前是 resource。 | |
socket_recvfrom | 現在 socket 是 Socket 實例, 之前是 resource。 | |
socket_recvmsg | 現在 socket 是 Socket 實例, 之前是 resource。 | |
socket_send | 現在 socket 是 Socket 實例, 之前是 resource。 | |
socket_sendmsg | 現在 socket 是 Socket 實例, 之前是 resource。 | |
socket_sendto | 現在 socket 是 Socket 實例, 之前是 resource。 | |
socket_sendto | port is nullable now. | |
socket_set_block | 現在 socket 是 Socket 實例, 之前是 resource。 | |
socket_set_nonblock | 現在 socket 是 Socket 實例, 之前是 resource。 | |
socket_set_option | 現在 socket 是 Socket 實例, 之前是 resource。 | |
socket_shutdown | 現在 socket 是 Socket 實例, 之前是 resource。 | |
socket_write | 現在 socket 是 Socket 實例, 之前是 resource。 | |
socket_write | length is nullable now. | |
socket_wsaprotocol_info_export | 現在 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 | 此函式失敗時不再返回 false 。 | |
str_word_count | characters 可為空(Nullable)型別。 | |
stream_context_create | 現在 options 和 params 可以為 null。 | |
stream_context_get_default | options is now nullable. | |
stream_copy_to_stream | length is now nullable. | |
stream_get_contents | 現在 length 可以為 null。 | |
stream_socket_accept | 現在 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 | 現在 length 允許為 null。 | |
substr | 函式將返回一個空字串, 在此之前返回 false 。 | |
substr_count | length 可以為空(nullable)。 | |
touch | mtime 和 atime 現在可以為空。 | |
uasort | 如果 callback 接受引用傳遞參數,該方法將會拋出 E_WARNING。 | |
uksort | 如果 callback 接受引用傳遞參數,該方法將會拋出 E_WARNING。 | |
usort | 如果 callback 接受引用傳遞參數,該方法將會拋出 E_WARNING。 | |
vsprintf | 此函式失敗時不再返回 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 現在可以為空。 | |
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 | 現在 writer 需要 XMLWriter 實例, 之前需要的是 resource。 | |
XMLWriter::endCdata | 現在 writer 需要 XMLWriter 實例, 之前需要的是 resource。 | |
XMLWriter::endComment | 現在 writer 需要 XMLWriter 實例, 之前需要的是 resource。 | |
XMLWriter::endDocument | 現在 writer 需要 XMLWriter 實例, 之前需要的是 resource。 | |
XMLWriter::endDtd | 現在 writer 需要 XMLWriter 實例, 之前需要的是 resource。 | |
XMLWriter::endDtdAttlist | 現在 writer 需要 XMLWriter 實例, 之前需要的是 resource。 | |
XMLWriter::endDtdElement | 現在 writer 需要 XMLWriter 實例, 之前需要的是 resource。 | |
XMLWriter::endDtdEntity | 現在 writer 需要 XMLWriter 實例, 之前需要的是 resource。 | |
XMLWriter::endElement | 現在 writer 需要 XMLWriter 實例, 之前需要的是 resource。 | |
XMLWriter::endPi | 現在 writer 需要 XMLWriter 實例, 之前需要的是 resource。 | |
XMLWriter::flush | 現在 writer 需要 XMLWriter 實例, 之前需要的是 resource。 | |
XMLWriter::flush | This function can no longer return false. | |
XMLWriter::fullEndElement | 現在 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 | 現在 writer 需要 XMLWriter 實例, 之前需要的是 resource。 | |
XMLWriter::setIndent | 現在 writer 需要 XMLWriter 實例, 之前需要的是 resource。 | |
XMLWriter::setIndentString | 現在 writer 需要 XMLWriter 實例, 之前需要的是 resource。 | |
XMLWriter::startAttribute | 現在 writer 需要 XMLWriter 實例, 之前需要的是 resource。 | |
XMLWriter::startAttributeNs | 現在 writer 需要 XMLWriter 實例, 之前需要的是 resource。 | |
XMLWriter::startAttributeNs | prefix is nullable now. | |
XMLWriter::startCdata | 現在 writer 需要 XMLWriter 實例, 之前需要的是 resource。 | |
XMLWriter::startComment | 現在 writer 需要 XMLWriter 實例, 之前需要的是 resource。 | |
XMLWriter::startDocument | 現在 writer 需要 XMLWriter 實例, 之前需要的是 resource。 | |
XMLWriter::startDtd | 現在 writer 需要 XMLWriter 實例, 之前需要的是 resource。 | |
XMLWriter::startDtdAttlist | 現在 writer 需要 XMLWriter 實例, 之前需要的是 resource。 | |
XMLWriter::startDtdElement | 現在 writer 需要 XMLWriter 實例, 之前需要的是 resource。 | |
XMLWriter::startDtdEntity | 現在 writer 需要 XMLWriter 實例, 之前需要的是 resource。 | |
XMLWriter::startElement | 現在 writer 需要 XMLWriter 實例, 之前需要的是 resource。 | |
XMLWriter::startElementNs | 現在 writer 需要 XMLWriter 實例, 之前需要的是 resource。 | |
XMLWriter::startPi | 現在 writer 需要 XMLWriter 實例, 之前需要的是 resource。 | |
XMLWriter::text | 現在 writer 需要 XMLWriter 實例, 之前需要的是 resource。 | |
XMLWriter::writeAttribute | 現在 writer 需要 XMLWriter 實例, 之前需要的是 resource。 | |
XMLWriter::writeAttributeNs | 現在 writer 需要 XMLWriter 實例, 之前需要的是 resource。 | |
XMLWriter::writeCdata | 現在 writer 需要 XMLWriter 實例, 之前需要的是 resource。 | |
XMLWriter::writeComment | 現在 writer 需要 XMLWriter 實例, 之前需要的是 resource。 | |
XMLWriter::writeDtd | 現在 writer 需要 XMLWriter 實例, 之前需要的是 resource。 | |
XMLWriter::writeDtdAttlist | 現在 writer 需要 XMLWriter 實例, 之前需要的是 resource。 | |
XMLWriter::writeDtdElement | 現在 writer 需要 XMLWriter 實例, 之前需要的是 resource。 | |
XMLWriter::writeDtdEntity | 現在 writer 需要 XMLWriter 實例, 之前需要的是 resource。 | |
XMLWriter::writeDtdEntity | publicId, systemId and notationData are nullable now. | |
XMLWriter::writeElement | 現在 writer 需要 XMLWriter 實例, 之前需要的是 resource。 | |
XMLWriter::writeElementNs | 現在 writer 需要 XMLWriter 實例, 之前需要的是 resource。 | |
XMLWriter::writePi | 現在 writer 需要 XMLWriter 實例, 之前需要的是 resource。 | |
XMLWriter::writeRaw | 現在 writer 需要 XMLWriter 實例, 之前需要的是 resource。 | |
7.4.4 | proc_open | 為 other_options 參數增加 create_new_console 選項。 |
7.4.0 | array_merge | 允許不帶參數呼叫,之前版本至少需要一個參數。 |
array_merge_recursive | 允許不傳遞參數呼叫,之前的版本中至少需要一個參數。 | |
get_magic_quotes_gpc | 該函式已被廢棄。 | |
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 | 現在 variant 的預設值為 INTL_IDNA_VARIANT_UTS46 , 而不是已棄用的 INTL_IDNA_VARIANT_2003 。 | |
idn_to_utf8 | 現在 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 | 擴充套件 sodium 提供了 Argon2 密碼的替代實現。 | |
password_hash | 現在 algo 參數可支援 string 型別,但爲了向後相容也支援 int 型別。 | |
password_needs_rehash | 現在 algo 參數可以支援 string 型別,但爲了向後相容性,同時支援 int 型別。 | |
preg_replace_callback | 新增 flags 參數。 | |
preg_replace_callback_array | The flags parameter was added. | |
proc_open | proc_open 的 cmd 參數現在也允許陣列型別。 | |
proc_open | 為 other_options 參數增加 create_process_group 選項。 | |
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 | DateTimeImmutable::createFromFormat | The v format specifier has been added. |
apache_request_headers | 此函式可用於 FPM SAPI 模式。 | |
array_push | 可以只用一個參數來呼叫此函式,之前版本中至少需要兩個參數。 | |
array_unshift | 現在可以只用一個參數來呼叫,之前至少需要兩個參數。 | |
bcmul | 現在 bcmul 可以按想要的小數點位數返回數字。 而之前,返回的數字會忽略尾隨零(trailing decimal zeroes)。 | |
bcpow | 現在 bcpow 可以按想要的小數點位數返回數字。 而之前,返回的數字會忽略尾隨零(trailing decimal zeroes)。 | |
bcscale | 現在 bcscale 不僅可以設定,還可以獲取目前的小數點保留位數。 用於設定的時候,現在會返回之前的位數。 之前 scale 是強制的參數, 且 bcscale 總是返回 true。 | |
compact | 現在,如果字串指向的變數未定義,compact 會產生 E_NOTICE 級錯誤。 在此之前,此類問題會靜默忽略掉。 | |
define | 廢棄了 case_insensitive,並將在 8.0.0 版中移除。 | |
ftp_nb_fget | 參數 mode 變為可選參數。 在之前的版本中,這是一個必填參數。 | |
ftp_nb_fput | 參數 mode 變為可選參數。 在之前的版本中,這是一個必填參數。 | |
ftp_nb_get | mode 參數變為可選,之前是強制性的。 | |
ftp_nb_put | mode 參數為可選,之前版本中為必填。 | |
ftp_put | mode 參數為可選,之前版本中為必選。 | |
getallheaders | 該函式可以在 FPM SAPI 中使用。 | |
is_countable | is_countable has been added. | |
json_decode | JSON_THROW_ON_ERROR options was added. | |
json_encode | options 參數新增 JSON_THROW_ON_ERROR 常量。 | |
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 | |
list | 支援在陣列解構時傳引用。 | |
password_hash | 增加 PASSWORD_ARGON2ID,支援 Argon2id 密碼演算法。 | |
preg_quote | 字元 # 被增加為需要轉義的。 | |
session_set_cookie_params | 增加 options 參數, 可以通過傳入一個關聯陣列對各個選項進行設定。 同時,通過使用這個參數還可以對 SameSite cookie 進行設定。 | |
setcookie | An alternative signature supporting an options array has been added. This signature supports also setting of the SameSite cookie attribute. | |
unlink | 現在 Windows 也可以用 unlink 刪除檔案控制代碼還在使用中的檔案了,在此之前是無法刪除的。 然而,還是無法重新建立檔案,需要等到所有控制代碼都關閉才可以。 | |
var_export | 現在將 stdClass 對像作為陣列型別轉換為對像輸出( (object) array( ... )),而不是使用不存在的 stdClass::__setState 方法。實際效果是,現在 stdClass 是可輸出的,產生的程式碼甚至可以在早期的 PHP 版本上執行。 | |
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 現在可能等於 main_str。 |
7.2.0 | array_unique | 如果 flags 是 SORT_STRING, 之前會複製 array 並移除非唯一陣列(之後並不打包陣列), 現在是通過新增唯一元素來產生新陣列。這可能會導致不同的數字索引。 |
bcmod | 現在 num1 和 num2 不會截斷成整數。 所以現在 bcmod 的表現更接近 fmod 而不是 % 操作符。 | |
bcmod | 新增參數 scale。 | |
count | 當 value 參數傳入了無效的 countable 型別, count 現在會產生警告。 | |
date_parse | 返回陣列的 zone 鍵現在代表秒,而不是分鐘。 並且正負符號已反轉,例如:之前是 -120 現在是 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. | |
date_sun_info | The calculation was fixed with regards to local midnight instead of local noon, which changes the results slightly. | |
exif_read_data | file 參數現在起支援本地檔案和流式資源。 | |
exif_read_data | 新增了以下 EXIF 格式的支援: Samsung DJI Panasonic Sony Pentax Minolta Sigma/Foveon AGFA Kyocera Ricoh Epson | |
gettype | 現在,已關閉的資源報告為 'resource (closed)'。 此前,已關閉的資源報告為 'unknown type'。 | |
hash_copy | 接受的參數以及返回值從資源型別修改爲 HashContext 對像型別。 | |
hash_final | 接收參數從資源型別修改爲 HashContext 對像型別。 | |
hash_hmac | 不再支援非加密的雜湊函式(adler32,crc32,crc32b,fnv132,fnv1a32,fnv164,fnv1a64,joaat)。 | |
hash_hmac_file | 不再支援非加密的雜湊函式(adler32,crc32,crc32b,fnv132,fnv1a32,fnv164,fnv1a64,joaat)。 | |
hash_init | 當使用 HASH_HMAC 選項的時候,不再支援非加密的雜湊函式(adler32,crc32,crc32b,fnv132,fnv1a32,fnv164,fnv1a64,joaat)。 | |
hash_init | 返回 HashContext 對象,不再返回資源型別。 | |
hash_pbkdf2 | 不再支援非加密的雜湊函式(adler32,crc32,crc32b,fnv132,fnv1a32,fnv164,fnv1a64,joaat)。 | |
hash_update | 接收參數從資源型別修改爲 HashContext 對像型別。 | |
hash_update_file | 接收參數從資源型別修改爲 HashContext 對像型別。 | |
hash_update_stream | 接收參數從資源型別修改爲 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 參數新增 JSON_INVALID_UTF8_IGNORE 和 JSON_INVALID_UTF8_SUBSTITUTE 常量。 | |
現在 additional_headers 參數開始支援 array。 | ||
mb_convert_encoding | 現在該函式的 string 參數同時能接受 array 型別。 在此之前,僅支援 string。 | |
number_format | number_format 現在無法返回 -0,之前可能返回 -0,因為 number 可能會是 -0.01。 | |
openssl_pkcs7_verify | 新增 p7bfilename 參數。 | |
pack | float 和 double 型別支援大端和小端。 | |
parse_str | 不帶第二個參數的情況下使用 parse_str 會產生 E_DEPRECATED 警告。 | |
password_hash | 增加 PASSWORD_ARGON2I,支援 Argon2i 密碼演算法。 | |
preg_match | 現在 $flags 參數支援 PREG_UNMATCHED_AS_NULL。 | |
preg_match_all | 現在 $flags 參數可以支援 PREG_UNMATCHED_AS_NULL。 | |
proc_nice | 在 Windows 平臺上可用。 | |
read_exif_data | 這個函式別名被廢棄。 | |
session_abort | The return type of this function is bool now. Formerly, it has been void. | |
session_module_name | 不允許設定模組名稱為 "user"。 在之前的版本中,如果設定為 "user",那麼會被靜默的忽略到。 | |
session_name | session_name 函式會檢查會話狀態, 之前的版本僅僅檢查 cookie 狀態。 所以,舊版本的 PHP 允許你在呼叫 session_start 函式之後再呼叫 session_name 函式, 新版本的 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 參數。 | |
DateTimeImmutable::__construct | From now on microseconds are filled with actual value. Not with '00000'. | |
DateTimeImmutable::setTime | The microsecond parameter was added. | |
array_rand | 內部隨機化演算法已從 libc rand 函式更改為使用 梅森旋轉演算法(Mersenne Twister) 隨機數產生器。 | |
file_get_contents | 支援負數 offset。 | |
getenv | 現在可以省略 varname 來檢索所有環境變數的關聯陣列 array。 | |
getopt | 新增 rest_index 參數。 | |
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 參數新增 JSON_UNESCAPED_LINE_TERMINATORS 常量。 | |
json_encode | 對 Double 的值進行編碼時,使用 serialize_precision 代替 precision。 | |
list | 現在可以指定 list 中的鍵。 這就可以解構非數字鍵或者無順序的陣列。 | |
long2ip | 參數 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 function checks whether string is valid for the current encoding. | |
mb_ereg_replace | The e modifier has been deprecated. | |
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 e modifier has been deprecated. | |
mb_eregi_replace | The function checks whether string is valid for the current encoding. | |
mb_strimwidth | 支援負數的 start 和 width。 | |
mb_stripos | 支援 offset 使用負數。 | |
mb_strpos | 支援負數的 offset。 | |
openssl_decrypt | 新增了 tag 和 aad 參數。 | |
openssl_encrypt | 增加了 tag、aad、tag_length 參數 | |
openssl_pkey_new | 新增了 curve_name 配置參數使得可以建立 EC 金鑰。 | |
session_start | 當 session_start 執行失敗, 無法開始一個會話的時候,會返回 false, 並且不會初始化超級變數 $_SESSION。 | |
shuffle | 內建的隨機數產生演算法從 libc rand 函式改成梅森旋轉偽隨機數產生演算法。 | |
str_shuffle | 內建的隨機演算法從 libc rand 函式改成了梅森旋轉演偽隨機數發生演算法。 | |
stripos | 開始支援負數的 offset。 | |
strpos | 開始支援負數的 offset。 | |
substr_count | 開始支援負數的 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' 了,而是真實的微秒數據。 |
7.0.15,7.1.1 | pack | 新增了 “e”,“E”,“g” 和 “G” 程式碼以啟用 float 和 double 的位元組順序支援。 |
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 參數。 | |
getrusage | 此函式現在開始支援 Windows。 | |
json_decode | Rejected RFC 7159 incompatible number formats - top level (07, 0xff, .1, -.1) and all levels ([1.], [1.e1]) | |
json_decode | An empty PHP string or value that after casting to string is an empty string (NULL, FALSE) results in JSON syntax error. | |
mktime | is_dst參數已經被移除。 | |
openssl_open | 新增了 iv 參數 | |
openssl_seal | 新增 iv 變數。 | |
session_start | 新加 options 參數。 | |
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 參數。 |
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 現在支援表達式了,而不僅僅是變數。 |
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. | |
此函式會產生一個 E_DEPRECATED 錯誤。 | ||
mysql_list_dbs 函式已廢棄,呼叫時會拋出 E_DEPRECATED 級別的錯誤。 | ||
函式會拋出一個 E_DEPRECATED 錯誤。 | ||
mysql_tablename 函式已廢棄,呼叫時會拋出 E_DEPRECATED 級別的錯誤。 | ||
setrawcookie | 發送給客戶端的 Set-Cookie 頭現在會加上 Max-Age 屬性。 | |
5.4.43, 5.5.27, 5.6.11 | escapeshellcmd | 感嘆號會被空格所替換。 |
5.4.32, 5.5.16 | ucwords | 增加了 delimiters 參數。 |
5.4.8 | assert | 增加了參數 description。 description 現在也作為第四個參數提供給 ASSERT_CALLBACK 模式里的回撥函式。 |
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 提取到字串的結尾處。 在之前的版本里, NULL 會被當作 0 來處理。 | |
5.4.7 | parse_url | 修復了 host 在 協議 省略時的識別。 |
5.4.4 | hex2bin | 如果輸入的字串有多餘將拋出異常。 PHP 5.4.0 起字串將被靜默地接受,但是最後的位元組會被截斷。 |
5.4.0 | date_default_timezone_get | 不再使用 TZ 來推測時區。 |
date_default_timezone_get | 不再根據操作系統的資訊來推測時區,因為這是不可靠的。 | |
dns_get_record | 增加了參數raw。 | |
empty | 檢查非數字的字串偏移量會返回 true. | |
filter_input_array | 新增 add_empty 參數. | |
filter_var_array | 新增 add_empty 參數。 | |
get_html_translation_table | The default value for the encoding parameter was changed to UTF-8. | |
get_html_translation_table | The constants ENT_HTML401, ENT_XML1, ENT_XHTML and ENT_HTML5 were added. | |
get_magic_quotes_runtime | 總是返回 false,因為魔術引號(magic quotes)功能已經從 PHP 中移除。 | |
htmlentities | 增加常量 ENT_SUBSTITUTE、 ENT_DISALLOWED、 ENT_HTML401、 ENT_XML1、 ENT_XHTML、 ENT_HTML5。 | |
htmlentities | encoding 參數的預設值改成 UTF-8。 | |
htmlspecialchars | 增加常量 ENT_SUBSTITUTE、 ENT_DISALLOWED、 ENT_HTML401、 ENT_XML1、 ENT_XHTML、 ENT_HTML5。 | |
htmlspecialchars | encoding 參數的預設值改成 UTF-8。 | |
htmlspecialchars_decode | 增加了 ENT_HTML401、ENT_XML1、 ENT_XHTML 和 ENT_HTML5 等常量。 | |
http_build_query | 加入了 enc_type 參數。 | |
iconv | 這個版本起,字元非法時候會返回 false,除非在輸出字元里指定了 //IGNORE 。 在之前版本,它會返回一部分字串。 | |
imagewebp | 支援把 resource 流作為 to 參數傳入。 | |
json_decode | JSON_BIGINT_AS_STRING, and JSON_OBJECT_AS_ARRAY options were added. | |
json_decode | The options parameter was 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 參數。 |
parse_url | 在 URL 解析失敗時將不會產生 E_WARNING 級別的錯誤。 | |
5.3.2 | crypt | 修正了 Blowfish 演算法由於非法循環導致的問題,返回“失敗”字串(“*0” 或 “*1”)而不是轉而使用 DES 演算法。 |
crypt | 基於 Ulrich Drepper 的實現,新增基於 SHA-256 演算法和 SHA-512 演算法的 crypt。 | |
flock | 在檔案資源控制代碼關閉時不再自動解鎖。現在要解鎖必須手動進行。 | |
5.3.0 起 | get_class | object 預設參數現在是 null ,所以,現在傳入 null 到 object 參數時,和沒傳參數的結果一樣。 |
5.3.0 | DateTime::__construct | 如果 time 參數不是一個有效的 日期/時間格式, 會拋出異常。 在之前的版本中是會發出一個錯誤。 |
DateTimeZone::listIdentifiers | 新增可選的 what 和 country 參數。 | |
acosh | This function is now available on all platforms | |
asinh | 此函式在所有平臺上均可用 | |
atanh | 此函式在所有平臺上都可以用了 | |
checkdnsrr | 這個函式在Windows平臺上也可以使用了。 | |
clearstatcache | 增加了可選的 clear_realpath_cache 和 filename 參數. | |
crypt | PHP 現在包含了它自己的 MD5 Crypt 實現,包括標準 DES 演算法,擴充套件的 DES 演算法以及 Blowfish 演算法。如果系統缺乏相應的實現,那麼 PHP 將使用它自己的實現。 | |
date_default_timezone_set | 現在會拋出 E_WARNING 而不是 E_STRICT。 | |
dns_get_record | 可以是在windows平臺上使用這個函式了。 | |
dns_get_record | 在此版本之前,如果給參數authns傳入值,則必須同時傳入addtl的值。 | |
expm1 | 此函式在所有平臺上均可用 | |
fgetcsv | 增加了 escape 參數。 | |
fnmatch | 此函式開始在 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 | 該函式可以在參數列表中使用。 | |
func_get_args | 該函式可以在參數列表中使用。 | |
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_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. | |
func_num_args | This function can now be used in parameter lists. | |
get_cfg_var | get_cfg_var 被修復,能夠返回 "array" 的 ini 選項。 | |
get_object_vars | This function now returns NULL if the object isn't an object. | |
getimagesize | Added icon support. | |
getmxrr | Windows 平臺上也能用這個函式了。 | |
htmlentities | 增加常量 ENT_IGNORE。 | |
htmlspecialchars | 增加常量 ENT_IGNORE。 | |
imagecolorclosesthwb | 在 Windows 平臺上可用 | |
imagefilter | Pixelation support (IMG_FILTER_PIXELATE) was added. | |
ini_get | 當配置項不存在,之前會返回空字串,現在會返回 false。 | |
ini_get_all | 增加參數 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 | 此函式在所有平臺上均可用 | |
mktime | mktime now throws E_DEPRECATED notice if the is_dst parameter is used. | |
nl2br | 新增可選的 is_xhtml 參數。在此之前,總是插入 '<br />'。 | |
openssl_open | 新增了 method 參數 | |
openssl_seal | 新增 method 變數。 | |
property_exists | This function checks the existence of a property independent of accessibility. | |
rawurlencode | 現在符合了RFC 3986。 | |
readlink | 此函式在 Windows 平臺下可用(Vista、Server 2008 或更高版本)。 | |
session_start | 如果函式呼叫失敗返回 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 參數。 | |
stristr | 新增可選的 before_needle 參數。 | |
strstr | 新增可選的 before_needle 參數。 | |
symlink | 此函式在 Windows 平臺上可用(Vista、Server 2008 或更高版本)。 | |
time_nanosleep | 至此之後該函式在Windows平臺下可用。 | |
time_sleep_until | 自此,函式在Windows平臺可用。 | |
5.2.10 | ip2long | 再此之前的版本, ip2long 有時會返回即使這不是一個IPV4的標準地址的數字地址。 |
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 | 增加參數 double_encode。 | |
htmlspecialchars | 增加參數 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 參數。 |
json_decode | Added support for JSON decoding of basic types. | |
memory_get_peak_usage | 使用此函式無需在編譯時加上 --enable-memory-limit 選項。 | |
memory_get_usage | 不需要在編譯時使用 --enable-memory-limit 選項就能夠使用這個函式。 | |
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 | 增加了可選參數 offset。 | |
memory_get_peak_usage | 新增參數 real_usage。 | |
memory_get_usage | 增加了參數 real_usage。 | |
openssl_verify | 新增了 signature_alg 參數。 | |
session_get_cookie_params | 在返回陣列中加入 “httponly”。 | |
session_set_cookie_params | 加入 httponly 參數。 | |
setrawcookie | 增加了 httponly 參數。 | |
PDOStatement::execute | input_parameters 中的鍵名必須和 SQL 中聲明的相匹配。PHP 5.2.0 之前預設忽略。 | |
5.1.3 | curl_getinfo | 引入CURLINFO_HEADER_OUT. |
get_headers | 自 PHP 5.1.3 起本函式使用預設的流上下文,其可以用 stream_context_get_default 函式設定和修改。 | |
http_build_query | 方括號也會被轉義。 | |
5.1.2 | date_default_timezone_set | 本版本開始驗證 timezone_identifier 參數。 |
http_build_query | 加入了參數 arg_separator。 | |
parse_url | 增加了參數 component。 | |
5.1.1 | date | format 參數標準的可用日期/時間格式常量見: 常量 |
5.1.0 | class_implements | 增加了允許參數class為字串的選項。增加了autoload參數。 |
class_parents | 增加了允許參數class為字串的選項。增加了autoload參數。 | |
ctype_digit | 在 PHP 5.1.0 之前,當 text 是一個空字串的時候,該函式將返回 true 。 | |
date | 現在發佈 E_STRICT 和 E_NOTICE 時區錯誤。 | |
date | 時間戳的有效取值範圍為 GMT 時間的 1901 年 12 月 13 日至 GMT 時間的 2038 年 1 月 19 日。 (32 位有符號整數的取值範圍)。 但是,在 PHP 5.1.0 之前的版本,在某些系統(例如 Windows)上有效取值範圍為 1970 年 1 月 1 日至 2038 年 1 月 19 日。 | |
date_sunrise | 現在發佈 E_STRICT 和 E_NOTICE 時區錯誤。 | |
date_sunset | 現在發佈 E_STRICT 和 E_NOTICE 時區錯誤。 | |
file_put_contents | 新增了對 LOCK_EX 的支援和 data 參數處理 stream 資源的功能。 | |
gettimeofday | 增加了參數 return_float。 | |
imagerotate | 新增: ignore_transparent 。 | |
localtime | 現在發佈 E_STRICT 和 E_NOTICE 時區錯誤。 | |
mktime | When called with no arguments, mktime throws E_STRICT notice. Use the time function instead. | |
mktime | is_dst 參數被廢棄。出錯時函式返回 false 而不再是 -1。修正了本函式可以接受年月日參數全為零。 | |
mktime | 現在發佈 E_STRICT 和 E_NOTICE 時區錯誤。 | |
strftime | 現在發佈 E_STRICT 和 E_NOTICE 時區錯誤。 | |
5.0.0 | checkdnsrr | 增加了AAAA的記錄型別。 |
fgetss | 參數 length 從 此開始可選。 | |
file_put_contents | Added context support | |
is_executable | is_executable 開始可用以于 Windows。 | |
jdtojewish | 增加了參數 fl。 | |
opendir | path 支援 ftp:// URL wrapper | |
socket_create | 增加 AF_INET6 支援。 | |
strip_tags | strip_tags 變為二進制安全的。 | |
strrpos | 引入 offset 參數。 | |
strrpos | 參數 needle 可以是一個多字元的字串。 |