Annotation of embedaddon/php/ext/xmlrpc/tests/bug51288.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #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>';
! 9: var_dump(xmlrpc_decode_request($req, $method));
! 10: var_dump($method);
! 11: echo "Done\n";
! 12: ?>
! 13: --EXPECT--
! 14: NULL
! 15: NULL
! 16: Done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>