Changelog

The following changes have been made to classes/functions/methods of this extension.

VersionFunctionDescription
8.1.0get_html_translation_tableflags changed from ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE.
 html_entity_decodeflags changed from ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE.
 htmlentitiesflags changed from ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE.
 htmlspecialcharsflags changed from ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE.
 htmlspecialchars_decodeflags changed from ENT_COMPAT to ENT_QUOTES | ENT_SUBSTITUTE.
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.
 cryptThe salt is no longer optional.
 explodeexplode will now throw ValueError when separator parameter is given an empty string (""). Previously, explode returned false instead.
 html_entity_decodeencoding is nullable now.
 htmlentitiesencoding is nullable now.
 implodePassing the separator after the array is no longer supported.
 levenshteinPrior to this version, levenshtein had to be called with either two or five arguments.
 metaphoneThe function returned false on failure.
 number_formatPrior to this version, number_format accepted one, two, or four parameters (but not three).
 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 string 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 separator after the array (i.e. using the legacy signature) 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 num 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