芝麻web文件管理V1.00
编辑当前文件:/home/conskgoa/doughi.co.uk/alt-php81-pecl-xmlrpc_1.0.0-0.RC3.el8.zip
PK x\-' tests/bug38431.phptnu [ --TEST-- Bug #38431 (xmlrpc_get_type() crashes PHP on objects) --SKIPIF-- --FILE-- 1,2,3); var_dump(xmlrpc_get_type($var)); $var = array("test"=>1,"test2"=>2); var_dump(xmlrpc_get_type($var)); echo "Done\n"; ?> --EXPECT-- string(5) "array" string(5) "array" string(5) "array" string(5) "mixed" string(6) "struct" Done PK x\[b b tests/bug51288.phptnu [ --TEST-- Bug #51288 (CVE-2010-0397, NULL pointer deref when no
in request) --SKIPIF-- --FILE--
'; var_dump(xmlrpc_decode_request($req, $method)); var_dump($method); echo "Done\n"; ?> --EXPECT-- NULL NULL Done PK x\6@ tests/005.phptnu [ --TEST-- xmlrpc_encode() Simple test encode type double and String --CREDITS-- Michel Araujo
#PHPSP 2013-08-22 --SKIPIF-- --FILE--
3.24234
-3.24234
Is string
PK x\#F`=u u tests/bug47818.phptnu [ --TEST-- Bug #47818 (Segfault due to bound callback param) --SKIPIF-- --FILE-- method = $method_name; print "Inside impl(): {$this->method}\n"; return array_sum($params); } function __construct() { $this->s = xmlrpc_server_create(); xmlrpc_server_register_method($this->s, 'add', array($this, 'impl')); } function call($req) { return xmlrpc_server_call_method($this->s, $req, null); } function getMethod() {return $this->method;} } $x = new MyXmlRpc; $resp = $x->call(xmlrpc_encode_request('add', array(1, 2, 3))); $method = $x->getMethod(); print "Global scope: $method\n"; ?> --EXPECT-- Inside impl(): add Global scope: add PK x\bP P tests/bug77380.phptnu [ --TEST-- Bug #77380 (Global out of bounds read in xmlrpc base64 code) --SKIPIF-- --FILE-- --EXPECT-- object(stdClass)#1 (2) { ["scalar"]=> string(0) "" ["xmlrpc_type"]=> string(6) "base64" } PK x\! tests/bug42736.phptnu [ --TEST-- Bug #42736 (xmlrpc_server_call_method() crashes) --SKIPIF-- --FILE-- add($id); } } $xml = xmlrpc_server_create(); $Myrequest = '
GetProducts
20060922T14:26:19
'; class MyClass { function GetProducts($dummy, $time){ return array('faultString' => $time); } } $myclass = new MyClass(); xmlrpc_server_register_method($xml, 'GetProducts', array($myclass, 'GetProducts')); $response = xmlrpc_server_call_method($xml, $Myrequest, null); var_dump($response); echo "Done\n"; ?> --EXPECT-- string(402) "
faultString
20060922T14:26:19
" Done PK x\B. tests/007.phptnu [ --TEST-- xmlrpc_decode() Simple test decode type int --CREDITS-- Michel Araujo
#PHPSP 2013-08-22 --SKIPIF-- --FILE--
1
XML; $response = xmlrpc_decode($xml); echo $response; --EXPECT-- 1 PK x\V=o o tests/bug70728_64bit.phptnu [ --TEST-- Bug #70728 (Type Confusion Vulnerability in PHP_to_XMLRPC_worker) --SKIPIF-- --FILE-- xmlrpc_type = 'base64'; $obj->scalar = 0x1122334455; var_dump(xmlrpc_encode($obj)); var_dump($obj); ?> --EXPECT-- string(135) "
NzM1ODgyMjkyMDU=
" object(stdClass)#1 (2) { ["xmlrpc_type"]=> string(6) "base64" ["scalar"]=> int(73588229205) } PK x\ tests/002.phptnu [ --TEST-- xmlrpc_encode_request() and various arguments --SKIPIF-- --FILE-- --EXPECTF-- array(0) { } string(6) "method" array(1) { [0]=> int(1) } string(6) "method" array(1) { [0]=> string(5) "param" } string(6) "method" array(1) { [0]=> string(0) "" } string(2) "-1" Done PK x\? tests/bug44996.phptnu [ --TEST-- Bug #44996 (xmlrpc_decode() ignores time zone on iso8601.datetime) --SKIPIF-- --FILE--
$datetime
"); print_r($obj); } DecodeDatetime("20010909T01:46:40Z"); DecodeDatetime("20010909T00:46:40-01"); DecodeDatetime("2001-09-09T08:46:40+07:00"); DecodeDatetime("2001-09-08T21:46:40-0400"); ?> --EXPECT-- ISO 8601 datetime 20010909T01:46:40Z stdClass Object ( [scalar] => 20010909T01:46:40Z [xmlrpc_type] => datetime [timestamp] => 1000000000 ) ISO 8601 datetime 20010909T00:46:40-01 stdClass Object ( [scalar] => 20010909T00:46:40-01 [xmlrpc_type] => datetime [timestamp] => 1000000000 ) ISO 8601 datetime 2001-09-09T08:46:40+07:00 stdClass Object ( [scalar] => 2001-09-09T08:46:40+07:00 [xmlrpc_type] => datetime [timestamp] => 1000000000 ) ISO 8601 datetime 2001-09-08T21:46:40-0400 stdClass Object ( [scalar] => 2001-09-08T21:46:40-0400 [xmlrpc_type] => datetime [timestamp] => 1000000000 ) PK x\w8 tests/bug71501.phptnu [ --TEST-- Bug #71501 (xmlrpc_encode_request ignores encoding option) --SKIPIF-- --FILE-- 'UTF-8', 'escaping' => 'markup']); ?> --EXPECT--
foo
Lê Trung Hiếu
PK x\uIH H tests/bug45556.phptnu [ --TEST-- Bug #45556 (Return value from callback isn't freed) --SKIPIF-- --FILE-- 'xml', 'version' => 'xmlrpc'); xmlrpc_server_call_method ($server, $request, NULL, $options); ?> --EXPECTF-- Warning: xmlrpc_server_call_method(): Invalid callback 'foobar' passed in %s on line %d Warning: xmlrpc_server_call_method(): XML parse error: [line 1, column 1, message: %s] Unable to add introspection data returned from bar::test() in %s on line %d Warning: xmlrpc_server_call_method(): Invalid callback 'foo::bar' passed in %s on line %d PK x\*5) ) tests/004.phptnu [ --TEST-- xmlrpc_encode() Simple test encode int --SKIPIF-- --FILE--
1
PK x\4{BX tests/bug74975.phptnu [ --TEST-- Bug #74975 Different serialization for classes --SKIPIF-- --FILE-- xmlrpc_type = 'base64'; $foo->scalar = 'foobar'; $bar = new Bar(); $bar->xmlrpc_type = 'base64'; $bar->scalar = 'foobar'; echo xmlrpc_encode([ 'foo' => $foo, 'bar' => $bar ]); ?> --EXPECT--
foo
Zm9vYmFy
bar
Zm9vYmFy
PK x\Y/G G tests/bug50761.phptnu [ --TEST-- Bug #50761 (system.multiCall crashes) --SKIPIF-- --FILE--
system.multiCall
methodName
testMethodA
params
A
methodName
testMethodB
params
B
'; function testA($methodName, $params, $var){ return "C"; } function testB($methodName, $params, $var){ return "D"; } $server = xmlrpc_server_create(); xmlrpc_server_register_method($server, 'testMethodA', 'testA'); xmlrpc_server_register_method($server, 'testMethodB', 'testB'); $res = xmlrpc_server_call_method($server, $req, null); echo $res; ?> --EXPECT--
C
D
PK x\}u tests/bug45555.phptnu [ --TEST-- Bug #45555 (Segfault with invalid non-string as register_introspection_callback) --SKIPIF-- --FILE-- 'xml', 'version' => 'xmlrpc'); xmlrpc_server_call_method ($server, $request, NULL, $options); ?> --EXPECTF-- Warning: xmlrpc_server_call_method(): Invalid callback '1' passed in %s on line %d Warning: xmlrpc_server_call_method(): Invalid callback 'foo::bar' passed in %s on line %d PK x\ڒL tests/006.phptnu [ --TEST-- xmlrpc_decode() Simple test decode type string --CREDITS-- Michel Araujo
#PHPSP 2013-08-22 --SKIPIF-- --FILE--
Is string
XML; $response = xmlrpc_decode($xml); echo $response; --EXPECT-- Is string PK x\n n tests/bug45226.phptnu [ --TEST-- Bug #45226 (xmlrpc_set_type() segfaults with valid ISO8601 date string) --INI-- date.timezone="America/Sao_Paulo" --SKIPIF-- --FILE-- $d)); $d = '2008-01-01 20:00:00'; xmlrpc_set_type($d, 'datetime'); echo xmlrpc_encode_request('method.call', array('date' => $d)); ?> --EXPECTF--
method.call
date
%d-%d-%dT%d:%d:%d%s%d
method.call
date
%d-%d-%d %d:%d:%d
PK x\MCtX X tests/003.phptnu [ --TEST-- xmlrpc_encode() Simple test encode array --SKIPIF-- --FILE-- "red", "two" => "blue", "three" => "green" ); $response = xmlrpc_encode($params); echo $response; $params = array( "red", "blue", "green" ); $response = xmlrpc_encode($params); echo $response; $params = array( 0 => "red", 1 => "blue", 3 => "green" ); $response = xmlrpc_encode($params); echo $response; --EXPECT--
one
red
two
blue
three
green
red
blue
green
0
red
1
blue
3
green
PK x\ԟs tests/bug77242.phptnu [ --TEST-- Bug #77242 (heap out of bounds read in xmlrpc_decode()) --SKIPIF-- --FILE-- --EXPECT-- NULLPK x\@d d tests/bug61097.phptnu [ --TEST-- Bug #61097 (Memory leak in xmlrpc functions copying zvals) --SKIPIF-- --FILE-- --EXPECT-- Done PK x\zD tests/bug18916.phptnu [ --TEST-- Bug #18916 (xmlrpc_set_type() not working) --SKIPIF-- --INI-- date.timezone="America/Sao_Paulo" --FILE-- --EXPECTF--
%dT%d:%d:%d
PK x\8 tests/bug50282.phptnu [ --TEST-- Bug #50282 (xmlrpc_encode_request() changes object into array in calling function) --SKIPIF-- --FILE-- --EXPECTF-- object(One)#%d (1) { ["x"]=> int(10) } string(279) "
test
x
10
" object(One)#%d (1) { ["x"]=> int(10) } PK x\: : tests/bug68027.phptnu [ --TEST-- Bug #68027 (buffer overflow in mkgmtime() function) --SKIPIF-- --FILE--
$datetime
"); print_r($obj); $datetime = "34770-0-08T21:46:40-0400"; $obj = xmlrpc_decode("
$datetime
"); print_r($obj); echo "Done\n"; ?> --EXPECTF-- object(stdClass)#1 (3) { ["scalar"]=> string(16) "6-01-01 20:00:00" ["xmlrpc_type"]=> string(8) "datetime" ["timestamp"]=> int(%d) } stdClass Object ( [scalar] => 2001-0-08T21:46:40-0400 [xmlrpc_type] => datetime [timestamp] => %s ) stdClass Object ( [scalar] => 34770-0-08T21:46:40-0400 [xmlrpc_type] => datetime [timestamp] => %d ) Done PK x\ޒY Y tests/bug61264.phptnu [ --TEST-- Bug #61264: xmlrpc_parse_method_descriptions leaks temporary variable --SKIPIF-- --FILE--
foo
XML; var_dump(xmlrpc_parse_method_descriptions($xml)); ?> --EXPECT-- array(1) { ["b"]=> string(3) "foo" } PK x\eB; ; tests/bug40576_64bit.phptnu [ --TEST-- Bug #40576 (double values are truncated to 6 decimal digits when encoding) --SKIPIF-- --INI-- precision=12 --FILE-- --EXPECT-- string(125) "
1.123456789
" string(119) "
-1066555326
" string(116) "
11234567
" string(106) "
" string(118) "
test
" string(139) "
1.22222222222222222222222
" Done PK x\ tests/bug72155.phptnu [ --TEST-- Bug #72155 (use-after-free caused by get_zval_xmlrpc_type) --SKIPIF-- --FILE-- --EXPECT-- string(109) "
5
" PK x\I\i tests/bug72647.phptnu [ --TEST-- Bug #72647 (xmlrpc_encode() unexpected output after referencing array elements) --SKIPIF-- --FILE-- --EXPECT--
4
a
7
PK x\l| tests/bug42189.phptnu [ --TEST-- Bug #42189 (xmlrpc_get_type() crashes PHP on invalid dates) --SKIPIF-- --FILE-- --EXPECT-- bool(false) Done PK x\Fnc tests/bug37057.phptnu [ --TEST-- Bug #37057 (xmlrpc_decode() may produce arrays with numeric string keys which are unaccessible) --SKIPIF-- --FILE--
50
0.29
'; $retval=xmlrpc_decode($response); var_dump($retval); var_dump($retval["50"]); var_dump($retval[50]); $response='
0
0.29
'; $retval=xmlrpc_decode($response); var_dump($retval); var_dump($retval["0"]); var_dump($retval[0]); echo "Done\n"; ?> --EXPECT-- array(1) { [50]=> string(4) "0.29" } string(4) "0.29" string(4) "0.29" array(1) { [0]=> string(4) "0.29" } string(4) "0.29" string(4) "0.29" Done PK x\P P tests/001.phptnu [ --TEST-- xmlrpc_encode_request() with wrong arguments --SKIPIF-- --FILE-- --EXPECTF-- string(174) "
-1
1
" string(160) "
1
" string(175) "
3.4
1
" Done PK x\BG tests/bug50285.phptnu [ --TEST-- Bug #50285 (xmlrpc does not preserve keys in encoded indexed arrays) --SKIPIF-- --FILE-- 'One', 3=>'Three', 5=>'Five'); } function test2($func, $params) { return array('One', 'Three', 'Five', 5); } function test3($func, $params) { return array('One', 3 => 'Three', 'Five' => 5, 'Six'); } function test4($func, $params) { return array('One', 'Three', 'Five', 'Six' => 6); } $server = xmlrpc_server_create(); $result = xmlrpc_server_register_method($server, 'test1', 'test1'); $HTTP_RAW_POST_DATA = <<
test1
EOD; $response = xmlrpc_server_call_method($server, $HTTP_RAW_POST_DATA, null); var_dump(xmlrpc_decode($response)); // ------------ $server = xmlrpc_server_create(); $result = xmlrpc_server_register_method($server, 'test2', 'test2'); $HTTP_RAW_POST_DATA = <<
test2
EOD; $response = xmlrpc_server_call_method($server, $HTTP_RAW_POST_DATA, null); var_dump(xmlrpc_decode($response)); // ------------ $server = xmlrpc_server_create(); $result = xmlrpc_server_register_method($server, 'test3', 'test3'); $HTTP_RAW_POST_DATA = <<
test3
EOD; $response = xmlrpc_server_call_method($server, $HTTP_RAW_POST_DATA, null); var_dump(xmlrpc_decode($response)); // ------------ $server = xmlrpc_server_create(); $result = xmlrpc_server_register_method($server, 'test4', 'test4'); $HTTP_RAW_POST_DATA = <<
test4
EOD; $response = xmlrpc_server_call_method($server, $HTTP_RAW_POST_DATA, null); var_dump(xmlrpc_decode($response)); ?> --EXPECT-- array(3) { [1]=> string(3) "One" [3]=> string(5) "Three" [5]=> string(4) "Five" } array(4) { [0]=> string(3) "One" [1]=> string(5) "Three" [2]=> string(4) "Five" [3]=> int(5) } array(4) { [0]=> string(3) "One" [3]=> string(5) "Three" ["Five"]=> int(5) [4]=> string(3) "Six" } array(4) { [0]=> string(3) "One" [1]=> string(5) "Three" [2]=> string(4) "Five" ["Six"]=> int(6) } PK x\6Y tests/bug70526.phptnu [ --TEST-- Bug #70526 (xmlrpc_set_type returns false on success) --SKIPIF-- --FILE-- --EXPECT-- bool(true) PK x\_F F tests/bug40576.phptnu [ --TEST-- Bug #40576 (double values are truncated to 6 decimal digits when encoding) --SKIPIF-- --INI-- precision=12 --FILE-- --EXPECT-- string(125) "
1.123456789
" string(130) "
1.1234567891E+13
" string(116) "
11234567
" string(106) "
" string(118) "
test
" string(139) "
1.22222222222222222222222
" Done PK x\ (q q tests/bug70728.phptnu [ --TEST-- Bug #70728 (Type Confusion Vulnerability in PHP_to_XMLRPC_worker) --SKIPIF-- --FILE-- xmlrpc_type = 'base64'; $obj->scalar = 0x1122334455; var_dump(xmlrpc_encode($obj)); var_dump($obj); ?> --EXPECT-- string(135) "
NzM1ODgyMjkyMDU=
" object(stdClass)#1 (2) { ["xmlrpc_type"]=> string(6) "base64" ["scalar"]=> float(73588229205) } PK x\-' tests/bug38431.phptnu [ PK x\[b b Y tests/bug51288.phptnu [ PK x\6@ tests/005.phptnu [ PK x\#F`=u u 7 tests/bug47818.phptnu [ PK x\bP P tests/bug77380.phptnu [ PK x\! tests/bug42736.phptnu [ PK x\B. tests/007.phptnu [ PK x\V=o o k tests/bug70728_64bit.phptnu [ PK x\ # tests/002.phptnu [ PK x\? tests/bug44996.phptnu [ PK x\w8 tests/bug71501.phptnu [ PK x\uIH H tests/bug45556.phptnu [ PK x\*5) ) [% tests/004.phptnu [ PK x\4{BX &