diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-10-07 13:04:06 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-10-30 10:53:45 +0100 |
commit | 93ba3abe63cd339c52cf5774e948bb35d8e73049 (patch) | |
tree | 4a7d1e418c79fb9cd8276a6816a07a4c5a7594e5 /ext/intl/breakiterator/breakiterator_methods.cpp | |
parent | becda2e0418d4efb55fca40b1170ca67cfbdb4e0 (diff) | |
download | php-git-93ba3abe63cd339c52cf5774e948bb35d8e73049.tar.gz |
Warn on strtr(["" => "x"])
Previously:
* If only ["" => "x"] was present, the original string was returned
without warning.
* If both ["" => "x"] and at least one more element was present,
false was returned without warning.
New behavior:
* Ignore "" keys in the replacement array (and perform any remaining
replacement).
* Throw a warning indicating that an empty string replacement has
been ignored.
Closes GH-4792.
Diffstat (limited to 'ext/intl/breakiterator/breakiterator_methods.cpp')
0 files changed, 0 insertions, 0 deletions