Журнал Змін

Були здійснені наступні зміни з класами/функціями/методами цього розширення.

VersionFunctionDescription
7.0.0setlocaleSupport for the category parameter passed as a string has been removed. Only LC_* constants can be used as of this version.
 substrIf string is equal to start characters long, an empty string will be returned. Prior to this version, FALSE was returned in this case.
5.6.5cryptWhen the failure string "*0" is given as the salt, "*1" will now be returned for consistency with other crypt implementations. Prior to this version, PHP 5.6 would incorrectly return a DES hash.
5.6.0cryptRaise E_NOTICE security warning if salt is omitted.
 html_entity_decodeThe default value for the encoding parameter was changed to be the value of the default_charset configuration option.
 htmlentitiesThe default value for the encoding parameter was changed to be the value of the default_charset configuration option.
 htmlspecialcharsThe default value for the encoding parameter was changed to be the value of the default_charset configuration option.
 substr_comparelength may now be 0.
5.5.21cryptWhen the failure string "*0" is given as the salt, "*1" will now be returned for consistency with other crypt implementations. Prior to this version, PHP 5.5 (and earlier branches) would incorrectly return a DES hash.
5.5.1hex2binA warning is thrown if the input string is invalid hexadecimal string.
5.4.32, 5.5.16ucwordsAdded the delimiters parameter.
5.4.4hex2binA warning is thrown if the input string is of odd length. In PHP 5.4.0 the string was silently accepted, but the last byte was truncated.
5.4.0get_html_translation_tableThe default value for the encoding parameter was changed to UTF-8.
 get_html_translation_tableThe constants ENT_HTML401, ENT_XML1, ENT_XHTML and ENT_HTML5 were added.
 html_entity_decodeThe constants ENT_HTML401, ENT_XML1, ENT_XHTML and ENT_HTML5 were added.
 html_entity_decodeDefault encoding changed from ISO-8859-1 to UTF-8.
 htmlentitiesThe constants ENT_SUBSTITUTE, ENT_DISALLOWED, ENT_HTML401, ENT_XML1, ENT_XHTML and ENT_HTML5 were added.
 htmlentitiesThe default value for the encoding parameter was changed to UTF-8.
 htmlspecialcharsThe constants ENT_SUBSTITUTE, ENT_DISALLOWED, ENT_HTML401, ENT_XML1, ENT_XHTML and ENT_HTML5 were added.
 htmlspecialcharsThe default value for the encoding parameter was changed to UTF-8.
 htmlspecialchars_decodeThe constants ENT_HTML401, ENT_XML1, ENT_XHTML and ENT_HTML5 were added.
 number_formatThis function now supports multiple bytes in dec_point and thousands_sep. Only the first byte of each separator was used in older versions.
5.3.7cryptAdded $2x$ and $2y$ Blowfish modes to deal with potential high-bit attacks.
5.3.4get_html_translation_tableThe encoding parameter was added.
5.3.2cryptAdded SHA-256 and SHA-512 crypt based on Ulrich Drepper's implementation.
 cryptFixed Blowfish behaviour on invalid rounds to return "failure" string ("*0" or "*1"), instead of falling back to DES.
5.3.0cryptPHP now contains its own implementation for the MD5 crypt, Standard DES, Extended DES and the Blowfish algorithms and will use that if the system lacks of support for one or more of the algorithms.
 htmlentitiesThe constant ENT_IGNORE was added.
 htmlspecialcharsThe constant ENT_IGNORE was added.
 nl2brAdded the optional is_xhtml parameter. Before this version '<br />' was always inserted.
 setlocaleThis function now throws an E_DEPRECATED notice if a string is passed to the category parameter instead of one of the LC_* constants.
 stristrAdded the optional parameter before_needle.
 strlenВ попередніх версіях, масив оброблявся як рядок зі значенням Array, тобто повертав довжину рядка рівну 5, та видавалось повідомлення про помилку рівня E_NOTICE.
 strstrAdded the optional parameter before_needle.
5.2.5addcslashesThe escape sequences \v and \f were added.
5.2.3htmlentitiesThe double_encode parameter was added.
 htmlspecialcharsThe double_encode parameter was added.
5.2.2 - 5.2.6substrIf the start parameter indicates the position of a negative truncation or beyond, false is returned. Other versions get the string from start.
5.1.0explodeДодано підтримку від'ємного значення параметра limit
 md5_fileФункцію змінено для роботи з потоковим API. Це означає, що її можна використовувати з обгортками, наприклад, так: md5_file('http://example.com/..')
 sha1_fileФункцію змінено для роботи з потоковим API. Це означає, що її можна використовувати з обгортками, наприклад, так: sha1_file('http://example.com/..')
 str_word_countAdded the charlist parameter
 substr_compareAdded the possibility to use a negative offset.
 substr_countAdded the offset and the length parameters
5.0.0strip_tagsstrip_tags тепер безпечна для бінарних даних.
 strrposThe needle may now be a string of more than one character.
4.3.0stristrstristr was made binary safe.
 strrchrThis function is now binary safe.
 strstrstrstr was made binary safe.
4.2.3strcollThis function now works on win32.
add a note add a note

User Contributed Notes

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