The following changes have been made to classes/functions/methods of this extension.
Version | Function | Description |
---|---|---|
8.1.0 | get_html_translation_table | flags changed from ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401. |
html_entity_decode | flags changed from ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401. | |
htmlentities | flags changed from ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401. | |
htmlspecialchars | flags changed from ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401. | |
htmlspecialchars_decode | flags changed from ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401. | |
8.0.0 | convert_uuencode | Prior to this version, trying to convert an empty string returned false for no particular reason. |
count_chars | Prior to this version, the function returned false on failure. | |
crypt | The salt is no longer optional. | |
explode | explode will now throw ValueError when separator parameter is given an empty string (""). Previously, explode returned false instead. | |
html_entity_decode | encoding is nullable now. | |
htmlentities | encoding is nullable now. | |
implode | Passing the separator after the array is no longer supported. | |
levenshtein | Prior to this version, levenshtein had to be called with either two or five arguments. | |
metaphone | The function returned false on failure. | |
number_format | Prior to this version, number_format accepted one, two, or four parameters (but not three). | |
parse_str | result is no longer optional. | |
soundex | Prior to this version, calling the function with an empty string returned false for no particular reason. | |
sprintf | This function no longer returns false on failure. | |
str_word_count | characters is nullable now. | |
strcspn | length is nullable now. | |
strip_tags | allowed_tags is nullable now. | |
stripos | Passing an int as needle is no longer supported. | |
stristr | Passing an int as needle is no longer supported. | |
strpos | Passing an int as needle is no longer supported. | |
strrchr | Passing an int as needle is no longer supported. | |
strripos | Passing an int as needle is no longer supported. | |
strrpos | Passing an int as needle is no longer supported. | |
strspn | length is nullable now. | |
strstr | Passing an int as needle is no longer supported. | |
substr | length is nullable now. When length is explicitly set to null, the function returns a substring finishing at the end of the string, when it previously returned an empty string. | |
substr | The function returns an empty string where it previously returned false. | |
substr_compare | length is nullable now. | |
substr_count | length is nullable now. | |
substr_replace | length is nullable now. | |
vsprintf | This function no longer returns false on failure. | |
7.4.0 | chr | The function no longer silently accepts unsupported codepoints, and casts these to 0. |
implode | Passing the separator after the array (i.e. using the legacy signature) has been deprecated. | |
money_format | This function has been deprecated. Instead, use NumberFormatter::formatCurrency. | |
str_getcsv | The escape parameter now interprets an empty string as signal to disable the proprietary escape mechanism. Formerly, an empty string was treated like the default parameter value. | |
strip_tags | The allowed_tags now alternatively accepts an array. | |
7.3.0 | stripos | Passing an int as needle has been deprecated. |
stristr | Passing an int as needle has been deprecated. | |
strpos | Passing an int as needle has been deprecated. | |
strrchr | Passing an int as needle has been deprecated. | |
strripos | Passing an int as needle has been deprecated. | |
strrpos | Passing an int as needle has been deprecated. | |
strstr | Passing an int as needle has been deprecated. | |
7.2.18, 7.3.5 | substr_compare | offset may now be equal to the length of haystack. |
7.2.0 | number_format | number_format was changed to not being able to return -0, previously -0 could be returned for cases like where num would be -0.01. |
parse_str | Usage of parse_str without a second parameter now emits an E_DEPRECATED notice. | |
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. | |
7.1.0 | str_shuffle | The internal randomization algorithm has been changed to use the Mersenne Twister Random Number Generator instead of the libc rand function. |
stripos | Support for negative offsets has been added. | |
strpos | Support for negative offsets has been added. | |
substr_count | Support for negative offsets and lengths has been added. length may also be 0 now. |