summaryrefslogtreecommitdiff
path: root/ext/mbstring/tests/bug45722.phpt
blob: 97f6fe5d9761b5105c3be01f774b9215b8388bac (plain)
1
2
3
4
5
6
7
8
9
10
--TEST--
Bug #45722 (mb_check_encoding() crashes)
--SKIPIF--
<?php extension_loaded('mbstring') or die('skip mbstring not available'); ?>
--FILE--
<?php
var_dump(mb_check_encoding("&\xc2\xb7 TEST TEST TEST TEST TEST TEST", "HTML-ENTITIES"));
?>
--EXPECT--
bool(false)