1
0
mirror of https://github.com/php/php-src.git synced 2026-04-03 22:22:18 +02:00
Files
archived-php-src/ext/mbstring/tests/bug79441.phpt
George Peter Banyard 18dc9044f5 Fix bug 79441
2020-04-01 04:29:20 +02:00

14 lines
309 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");
mb_chr(0xd800);
?>
--EXPECTF--
Warning: mb_chr(): Unsupported encoding "UTF-7" in %s on line %d