xref: /php-src/ext/mbstring/tests/bug79371.phpt (revision 74859783)
1--TEST--
2Bug #79371 (mb_strtolower (UTF-32LE): stack-buffer-overflow)
3--EXTENSIONS--
4mbstring
5--FILE--
6<?php
7$bytes = array(0xef, 0xbf, 0xbd, 0xef);
8$str = implode(array_map("chr", $bytes));
9var_dump(bin2hex(mb_strtolower($str, "UTF-32LE")));
10?>
11--EXPECT--
12string(8) "3f000000"
13