xref: /PHP-7.2/ext/mbstring/tests/bug52931.phpt (revision a8239ff2)
1--TEST--
2Bug #52931 (strripos not overloaded with function overloading enabled)
3--SKIPIF--
4<?php extension_loaded('mbstring') or die('skip mbstring not available'); ?>
5--INI--
6mbstring.func_overload = 7
7mbstring.internal_encoding = utf-8
8--FILE--
9<?php
10
11$string = '<body>Umlauttest öüä</body>';
12
13var_dump(strlen($string));
14var_dump(mb_strlen($string));
15
16var_dump(strripos($string, '</body>'));
17var_dump(mb_strripos($string, '</body>'));
18
19?>
20--EXPECTF--
21Deprecated: The mbstring.func_overload directive is deprecated in Unknown on line 0
22int(27)
23int(27)
24int(20)
25int(20)
26