xref: /PHP-7.0/ext/xmlrpc/tests/bug61264.phpt (revision 71308877)
1--TEST--
2Bug #61264: xmlrpc_parse_method_descriptions leaks temporary variable
3--SKIPIF--
4<?php if (!extension_loaded("xmlrpc")) print "skip"; ?>
5--FILE--
6<?php
7$xml = <<<XML
8<?xml version="1.0" encoding="utf-8"?>
9<a>
10 <b>foo</b>
11</a>
12XML;
13var_dump(xmlrpc_parse_method_descriptions($xml));
14?>
15--EXPECT--
16array(1) {
17  ["b"]=>
18  string(3) "foo"
19}
20