xref: /PHP-7.3/ext/xmlrpc/tests/bug51288.phpt (revision 7e9bc5f7)
1--TEST--
2Bug #51288 (CVE-2010-0397, NULL pointer deref when no <methodName> in request)
3--SKIPIF--
4<?php if (!extension_loaded("xmlrpc")) print "skip"; ?>
5--FILE--
6<?php
7$method = NULL;
8$req = '<?xml version="1.0"?><methodCall></methodCall>';
9var_dump(xmlrpc_decode_request($req, $method));
10var_dump($method);
11echo "Done\n";
12?>
13--EXPECT--
14NULL
15NULL
16Done
17