bug72061.phpt 299 B

123456789101112131415
  1. --TEST--
  2. Bug #72061: Out-of-bounds reads in zif_grapheme_stripos with negative offset
  3. --EXTENSIONS--
  4. intl
  5. --FILE--
  6. <?php
  7. var_dump(grapheme_stripos(str_repeat("ABCD", 16384), "A", -201));
  8. var_dump(grapheme_strpos(str_repeat("ABCD", 16384), "A", -201));
  9. ?>
  10. DONE
  11. --EXPECT--
  12. int(65336)
  13. int(65336)
  14. DONE