mirror of
https://github.com/php/php-src.git
synced 2026-03-24 08:12:21 +01:00
Moves the usage of `mb_internal_encoding()` to INI section for the tests not testing the encoding/function itself, but the other mbstring/iconv functions.
19 lines
304 B
PHP
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
|