bug61487.phpt 571 B

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