History log of /PHP-8.0/ext/intl/tests/grapheme_out_of_bounds.phpt (Results 1 – 4 of 4)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: php-8.0.0, php-7.3.25, php-7.4.13, php-8.0.0RC5, php-7.4.13RC1, php-8.0.0RC4, php-7.3.25RC1, php-7.4.12, php-8.0.0RC3, php-7.3.24, php-8.0.0RC2, php-7.4.12RC1, php-7.3.24RC1
# 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.


Revision tags: php-7.2.34, php-8.0.0rc1, php-7.4.11, php-7.3.23
# 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.