xref: /php-src/ext/mbstring/tests/gh11217.phpt (revision aa553af9)
1--TEST--
2GH-11217: Segfault in mb_strrpos/mb_strripos with ASCII encoding and negative offset
3--EXTENSIONS--
4mbstring
5--FILE--
6<?php
7var_dump(mb_strrpos('foo', 'foo', -1, 'ASCII'));
8var_dump(mb_strripos('foo', 'foo', -1, 'ASCII'));
9?>
10--EXPECT--
11int(0)
12int(0)
13