php-src/ext/mbstring/tests/bug52931.phpt

23 lines
400 B
PHP

--TEST--
Bug #52931 (strripos not overloaded with function overloading enabled)
--INI--
mbstring.func_overload = 7
mbstring.internal_encoding = utf-8
--FILE--
<?php
$string = '<body>Umlauttest öüä</body>';
var_dump(strlen($string));
var_dump(mb_strlen($string));
var_dump(strripos($string, '</body>'));
var_dump(mb_strripos($string, '</body>'));
?>
--EXPECTF--
int(27)
int(27)
int(20)
int(20)