summaryrefslogtreecommitdiff
path: root/ext/xmlrpc/tests/bug51288.phpt
blob: d9bdef822ef0ba188e47c0b5487b876de68efed0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--TEST--
Bug #51288 (CVE-2010-0397, NULL pointer deref when no <methodName> in request)
--FILE--
<?php
$method = NULL;
$req = '<?xml version="1.0"?><methodCall></methodCall>';
var_dump(xmlrpc_decode_request($req, $method));
var_dump($method);
echo "Done\n";
?>
--EXPECT--
NULL
NULL
Done