Files
php-src/ext/mbstring/tests/mb_regex_encoding_basic.phpt
tekimenandTim Düsterhus cc56225339 [RFC][mbregex] Set deprecate Oniguruma(mbregex) (#21490)
Set deprecate Oniguruma(mbregex)

Thank you for Oniguruma.

Co-authored-by: Tim Düsterhus <timwolla@googlemail.com>
2026-04-28 11:06:53 +09:00

38 lines
1011 B
PHP

--TEST--
Test mb_regex_encoding() function : basic functionality
--EXTENSIONS--
mbstring
--SKIPIF--
<?php
function_exists('mb_regex_encoding') or die("skip mb_regex_encoding() is not available in this build");
?>
--FILE--
<?php
/*
* Test Basic functionality of mb_regex_encoding
*/
echo "*** Testing mb_regex_encoding() : basic functionality ***\n";
var_dump(mb_regex_encoding());
var_dump(mb_regex_encoding('UTF-8'));
var_dump(mb_regex_encoding());
echo "Done";
?>
--EXPECTF--
*** Testing mb_regex_encoding() : basic functionality ***
Deprecated: Function mb_regex_encoding() is deprecated since 8.6, because the underlying library is no longer maintained in %s on line %d
string(%d) "%s"
Deprecated: Function mb_regex_encoding() is deprecated since 8.6, because the underlying library is no longer maintained in %s on line %d
bool(true)
Deprecated: Function mb_regex_encoding() is deprecated since 8.6, because the underlying library is no longer maintained in %s on line %d
string(5) "UTF-8"
Done