xref: /PHP-8.2/ext/intl/tests/bug65732.phpt (revision 74859783)
1--TEST--
2Bug #65732 (grapheme_*() is not Unicode compliant on CR LF sequence)
3--EXTENSIONS--
4intl
5--FILE--
6<?php
7var_dump(grapheme_strlen("\r\n"));
8var_dump(grapheme_substr(implode("\r\n", ['abc', 'def', 'ghi']), 5));
9var_dump(grapheme_strrpos("a\r\nb", 'b'));
10?>
11--EXPECT--
12int(1)
13string(7) "ef
14ghi"
15int(2)
16