xref: /PHP-5.6/ext/intl/tests/bug72061.phpt (revision fd968974)
1--TEST--
2Bug #72061: Out-of-bounds reads in zif_grapheme_stripos with negative offset
3--SKIPIF--
4<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
5--FILE--
6<?php
7
8var_dump(grapheme_stripos(str_repeat("ABCD", 16384), "A", -201));
9var_dump(grapheme_strpos(str_repeat("ABCD", 16384), "A", -201));
10?>
11DONE
12--EXPECT--
13int(65336)
14int(65336)
15DONE