13 lines
278 B
PHP
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"
|