xref: /PHP-7.2/ext/intl/tests/bug65732.phpt (revision e4a006cd)
1--TEST--
2Bug #65732 (grapheme_*() is not Unicode compliant on CR LF sequence)
3--SKIPIF--
4<?php
5if (!extension_loaded('intl')) die('skip intl extension not available');
6?>
7--FILE--
8<?php
9var_dump(grapheme_strlen("\r\n"));
10var_dump(grapheme_substr(implode("\r\n", ['abc', 'def', 'ghi']), 5));
11var_dump(grapheme_strrpos("a\r\nb", 'b'));
12?>
13==DONE==
14--EXPECT--
15int(1)
16string(7) "ef
17ghi"
18int(2)
19==DONE==
20