1--TEST--
2Bug #49687 Several utf8_decode deficiencies and vulnerabilities
3--FILE--
4<?php
5
6$tests = array(
7    "\x41\xC2\x3E\x42",
8    "\xE3\x80\x22",
9    "\x41\x98\xBA\x42\xE2\x98\x43\xE2\x98\xBA\xE2\x98",
10);
11foreach ($tests as $t) {
12    echo bin2hex(utf8_decode($t)), "\n";
13}
14echo "Done.\n";
15--EXPECT--
16413f3e42
173f22
18413f3f423f433f3f
19Done.
20