1
0
mirror of https://github.com/php/php-src.git synced 2026-03-25 16:52:18 +01:00
Files
archived-php-src/ext/mbstring/tests/bug79441.phpt
George Peter Banyard a54ee6e591 Merge branch 'PHP-7.4'
2020-04-01 04:55:35 +02:00

18 lines
367 B
PHP

--TEST--
Bug #79441 Segfault in mb_chr() if internal encoding is unsupported
--SKIPIF--
<?php extension_loaded('mbstring') or die('skip mbstring not available'); ?>
--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