1
0
mirror of https://github.com/php/php-src.git synced 2026-03-29 19:52:20 +02:00
Files
archived-php-src/ext/mbstring/tests/mb_strrpos_encoding_3rd_param.phpt
2019-07-22 11:39:52 +02:00

15 lines
399 B
PHP

--TEST--
Passing encoding as 3rd param to mb_strrpos (legacy)
--SKIPIF--
<?php if(!extension_loaded('mbstring')) die('skip mbstring not loaded'); ?>
--FILE--
<?php
mb_internal_encoding('UTF-16');
var_dump(mb_strrpos("abc abc abc", "abc", "UTF-8"));
?>
--EXPECTF--
Deprecated: mb_strrpos(): Passing the encoding as third parameter is deprecated. Use an explicit zero offset in %s on line %d
int(8)