History log of /PHP-8.1/ext/intl/tests/grapheme_out_of_bounds.phpt (Results 1 – 5 of 5)
Revision Date Author Comments
# 6600ad60 14-Jun-2021 Nikita Popov

Add some missing EXTENSIONS sections to misc tests


# f82414e9 01-Oct-2020 Nikita Popov

Fix out of bounds offset handling with empty needle

For strrpos with positive out of bounds offsets was not detected.


# 13b791c7 22-Sep-2020 Nikita Popov

Normalize substr() behavior

Make the behavior of substr(), mb_substr(), iconv_substr() and
grapheme_substr() consistent when it comes to the handling of
out of bounds offsets. substr

Normalize substr() behavior

Make the behavior of substr(), mb_substr(), iconv_substr() and
grapheme_substr() consistent when it comes to the handling of
out of bounds offsets. substr() will now always clamp out of
bounds offsets to the string boundary. Cases that previously
returned false will now return an empty string. This means that
substr() itself *always* returns a string now (like mb_substr()
already did before.)

Closes GH-6182.

show more ...


# 6436ddbf 22-Sep-2020 Nikita Popov

Handle out-of-bounds offset consistently in grapheme_* API

Make sure we throw the same kind of error regardless of whether
the offset is out-of-bounds in the fast path or in the slow

Handle out-of-bounds offset consistently in grapheme_* API

Make sure we throw the same kind of error regardless of whether
the offset is out-of-bounds in the fast path or in the slow
path.

show more ...


# 1312c417 22-Sep-2020 Nikita Popov

Fix grapheme out of bounds check

An offset equal to the string length is not out of bounds.