Au fost efectuate următoarele modificări ale claselor/funcțiilor/metodelor acestei extensii.
Version | Function | Description |
---|---|---|
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. | |
html_entity_decode | encoding is nullable now. | |
htmlentities | encoding is nullable now. | |
metaphone | The function returned false on failure. | |
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. | |
substr | The function returns an empty 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 glue after the pieces (i.e. not using the documented order of parameters) 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 number would be -0.01. |
parse_str | Usage of parse_str without a second parameter now emits an E_DEPRECATED notice. | |
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. |