mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
15 lines
346 B
PHP
15 lines
346 B
PHP
--TEST--
|
|
Bug #72061: Out-of-bounds reads in zif_grapheme_stripos with negative offset
|
|
--SKIPIF--
|
|
<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
|
|
--FILE--
|
|
<?php
|
|
|
|
var_dump(grapheme_stripos(str_repeat("ABCD", 16384), "A", -201));
|
|
var_dump(grapheme_strpos(str_repeat("ABCD", 16384), "A", -201));
|
|
?>
|
|
DONE
|
|
--EXPECT--
|
|
int(65336)
|
|
int(65336)
|
|
DONE
|