Jurnalul modificărilor

Au fost efectuate următoarele modificări ale claselor/funcțiilor/metodelor acestei extensii.

VersionFunctionDescription
8.0.0convert_uuencodePrior to this version, trying to convert an empty string returned false for no particular reason.
 count_charsPrior to this version, the function returned false on failure.
 html_entity_decodeencoding is nullable now.
 htmlentitiesencoding is nullable now.
 metaphoneThe function returned false on failure.
 parse_strresult is no longer optional.
 soundexPrior to this version, calling the function with an empty string returned false for no particular reason.
 sprintfThis function no longer returns false on failure.
 str_word_countcharacters is nullable now.
 strcspnlength is nullable now.
 strip_tagsallowed_tags is nullable now.
 striposPassing an int as needle is no longer supported.
 stristrPassing an int as needle is no longer supported.
 strposPassing an int as needle is no longer supported.
 strrchrPassing an int as needle is no longer supported.
 strriposPassing an int as needle is no longer supported.
 strrposPassing an int as needle is no longer supported.
 strspnlength is nullable now.
 strstrPassing an int as needle is no longer supported.
 substrlength is nullable now.
 substrThe function returns an empty where it previously returned false.
 substr_comparelength is nullable now.
 substr_countlength is nullable now.
 substr_replacelength is nullable now.
 vsprintfThis function no longer returns false on failure.
7.4.0chrThe function no longer silently accepts unsupported codepoints, and casts these to 0.
 implodePassing the glue after the pieces (i.e. not using the documented order of parameters) has been deprecated.
 money_formatThis function has been deprecated. Instead, use NumberFormatter::formatCurrency.
 str_getcsvThe 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_tagsThe allowed_tags now alternatively accepts an array.
7.3.0striposPassing an int as needle has been deprecated.
 stristrPassing an int as needle has been deprecated.
 strposPassing an int as needle has been deprecated.
 strrchrPassing an int as needle has been deprecated.
 strriposPassing an int as needle has been deprecated.
 strrposPassing an int as needle has been deprecated.
 strstrPassing an int as needle has been deprecated.
7.2.18, 7.3.5substr_compareoffset may now be equal to the length of haystack.
7.2.0number_formatnumber_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_strUsage of parse_str without a second parameter now emits an E_DEPRECATED notice.
7.1.0str_shuffleThe internal randomization algorithm has been changed to use the Mersenne Twister Random Number Generator instead of the libc rand function.
 striposSupport for negative offsets has been added.
 strposSupport for negative offsets has been added.
 substr_countSupport for negative offsets and lengths has been added. length may also be 0 now.
add a note add a note

User Contributed Notes

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