php-src/ext/mbstring/tests/bug79371.phpt
Nikita Popov 7485978339
Migrate SKIPIF -> EXTENSIONS (#7138)
This is an automated migration of most SKIPIF extension_loaded checks.
2021-06-11 11:57:42 +02:00

13 lines
278 B
PHP

--TEST--
Bug #79371 (mb_strtolower (UTF-32LE): stack-buffer-overflow)
--EXTENSIONS--
mbstring
--FILE--
<?php
$bytes = array(0xef, 0xbf, 0xbd, 0xef);
$str = implode(array_map("chr", $bytes));
var_dump(bin2hex(mb_strtolower($str, "UTF-32LE")));
?>
--EXPECT--
string(8) "3f000000"