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?>
16--EXPECTF--
17Deprecated: Function utf8_decode() is deprecated since 8.2, visit the php.net documentation for various alternatives in %s on line %d
18413f3e42
19
20Deprecated: Function utf8_decode() is deprecated since 8.2, visit the php.net documentation for various alternatives in %s on line %d
213f22
22
23Deprecated: Function utf8_decode() is deprecated since 8.2, visit the php.net documentation for various alternatives in %s on line %d
24413f3f423f433f3f
25Done.
26