xref: /PHP-8.4/ext/intl/tests/bug61487.phpt (revision 74859783)
1--TEST--
2grapheme() str[i]pos limits
3--EXTENSIONS--
4intl
5--SKIPIF--
6<?php if (PHP_INT_SIZE != 8) die('skip 64-bit only');
7?>
8--FILE--
9<?php
10try {
11    grapheme_stripos(1,1,2147483648);
12} catch (ValueError $exception) {
13    echo $exception->getMessage() . "\n";
14}
15
16try {
17    grapheme_strpos(1,1,2147483648);
18} catch (ValueError $exception) {
19    echo $exception->getMessage() . "\n";
20}
21?>
22--EXPECT--
23grapheme_stripos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
24grapheme_strpos(): Argument #3 ($offset) must be contained in argument #1 ($haystack)
25