mirror of
https://github.com/php/php-src.git
synced 2026-04-03 22:22:18 +02:00
14 lines
309 B
PHP
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
|