1
0
mirror of https://github.com/php/php-src.git synced 2026-04-04 22:52:40 +02:00
Files
archived-php-src/ext/xmlrpc/tests/bug51288.phpt
2010-03-13 18:40:29 +00:00

15 lines
287 B
PHP

--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