mirror of
https://github.com/php/php-src.git
synced 2026-04-24 08:28:26 +02:00
097cae9d90
* PHP-8.0: Fix #74264: grapheme_strrpos() broken for negative offsets
25 lines
380 B
PHP
25 lines
380 B
PHP
--TEST--
|
|
Bug #74264 (grapheme_sttrpos() broken for negative offsets)
|
|
--EXTENSIONS--
|
|
intl
|
|
--FILE--
|
|
<?php
|
|
foreach (range(-5, -1) as $offset) {
|
|
var_dump(
|
|
grapheme_strrpos('déjàààà', 'à', $offset),
|
|
grapheme_strripos('DÉJÀÀÀÀ', 'à', $offset)
|
|
);
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
bool(false)
|
|
bool(false)
|
|
int(3)
|
|
int(3)
|
|
int(4)
|
|
int(4)
|
|
int(5)
|
|
int(5)
|
|
int(6)
|
|
int(6)
|