xref: /PHP-5.6/ext/xmlrpc/tests/bug77380.phpt (revision 1cc2182b)
1--TEST--
2Bug #77380 (Global out of bounds read in xmlrpc base64 code)
3--SKIPIF--
4<?php
5if (!extension_loaded("xmlrpc")) print "skip";
6?>
7--FILE--
8<?php
9var_dump(xmlrpc_decode(base64_decode("PGJhc2U2ND7CkzwvYmFzZTY0Pgo=")));
10?>
11--EXPECT--
12object(stdClass)#1 (2) {
13  ["scalar"]=>
14  string(0) ""
15  ["xmlrpc_type"]=>
16  string(6) "base64"
17}
18