blob: 5a71423dce77c4f6796b0a1e68bce5383c9a8f51 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
--TEST--
Bug #72155 (use-after-free caused by get_zval_xmlrpc_type)
--SKIPIF--
<?php
if (!extension_loaded("xmlrpc")) print "skip";
?>
--FILE--
<?php
if (false !== strpos(PHP_OS, "WIN")) {
$fl = "c:\\windows\\explorer.exe";
} else {
$fl = "/etc/passwd";
}
$var0 = fopen($fl,"r");
$var1 = xmlrpc_encode($var0);
var_dump($var1);
?>
--EXPECTF--
string(109) "<?xml version="1.0" encoding="utf-8"?>
<params>
<param>
<value>
<int>5</int>
</value>
</param>
</params>
"
|