mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
39131219e8
This is a mix of more automated and manual migration. It should remove all applicable extension_loaded() checks outside of skipif.inc files.
18 lines
303 B
PHP
18 lines
303 B
PHP
--TEST--
|
|
Bug #79441 Segfault in mb_chr() if internal encoding is unsupported
|
|
--EXTENSIONS--
|
|
mbstring
|
|
--FILE--
|
|
<?php
|
|
|
|
mb_internal_encoding("utf-7");
|
|
try {
|
|
mb_chr(0xd800);
|
|
} catch (\ValueError $e) {
|
|
echo $e->getMessage() . \PHP_EOL;
|
|
}
|
|
|
|
?>
|
|
--EXPECT--
|
|
mb_chr() does not support the "UTF-7" encoding
|