ru_php/ext/mbstring/tests/bug79441.phpt

19 lines
304 B
PHP

--TEST--
Bug #79441 Segfault in mb_chr() if internal encoding is unsupported
--EXTENSIONS--
mbstring
--INI--
internal_encoding=utf-7
--FILE--
<?php
try {
mb_chr(0xd800);
} catch (\ValueError $e) {
echo $e->getMessage() . \PHP_EOL;
}
?>
--EXPECT--
mb_chr() does not support the "UTF-7" encoding