Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.112
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
src /
php-7.4.33 /
ext /
xmlrpc /
tests /
Delete
Unzip
Name
Size
Permission
Date
Action
001.phpt
995
B
-rw-rw-r--
2022-10-31 11:36
002.phpt
1023
B
-rw-rw-r--
2022-10-31 11:36
003.phpt
1.56
KB
-rw-rw-r--
2022-10-31 11:36
004.phpt
297
B
-rw-rw-r--
2022-10-31 11:36
005.phpt
763
B
-rw-rw-r--
2022-10-31 11:36
006.phpt
425
B
-rw-rw-r--
2022-10-31 11:36
007.phpt
400
B
-rw-rw-r--
2022-10-31 11:36
bug18916.phpt
443
B
-rw-rw-r--
2022-10-31 11:36
bug37057.phpt
1.14
KB
-rw-rw-r--
2022-10-31 11:36
bug38431.phpt
534
B
-rw-rw-r--
2022-10-31 11:36
bug40576.phpt
1.32
KB
-rw-rw-r--
2022-10-31 11:36
bug40576_64bit.phpt
1.31
KB
-rw-rw-r--
2022-10-31 11:36
bug42189.phpt
279
B
-rw-rw-r--
2022-10-31 11:36
bug42736.phpt
1.19
KB
-rw-rw-r--
2022-10-31 11:36
bug44996.phpt
1.23
KB
-rw-rw-r--
2022-10-31 11:36
bug45226.phpt
1.11
KB
-rw-rw-r--
2022-10-31 11:36
bug45555.phpt
757
B
-rw-rw-r--
2022-10-31 11:36
bug45556.phpt
1.08
KB
-rw-rw-r--
2022-10-31 11:36
bug47818.phpt
885
B
-rw-rw-r--
2022-10-31 11:36
bug50282.phpt
688
B
-rw-rw-r--
2022-10-31 11:36
bug50285.phpt
2.38
KB
-rw-rw-r--
2022-10-31 11:36
bug50761.phpt
1.57
KB
-rw-rw-r--
2022-10-31 11:36
bug51288.phpt
354
B
-rw-rw-r--
2022-10-31 11:36
bug61097.phpt
356
B
-rw-rw-r--
2022-10-31 11:36
bug61264.phpt
345
B
-rw-rw-r--
2022-10-31 11:36
bug68027.phpt
1.06
KB
-rw-rw-r--
2022-10-31 11:36
bug70526.phpt
267
B
-rw-rw-r--
2022-10-31 11:36
bug70728.phpt
625
B
-rw-rw-r--
2022-10-31 11:36
bug70728_64bit.phpt
623
B
-rw-rw-r--
2022-10-31 11:36
bug71501.phpt
478
B
-rw-rw-r--
2022-10-31 11:36
bug72155.phpt
467
B
-rw-rw-r--
2022-10-31 11:36
bug72647.phpt
532
B
-rw-rw-r--
2022-10-31 11:36
bug74975.phpt
773
B
-rw-rw-r--
2022-10-31 11:36
bug77242.phpt
281
B
-rw-rw-r--
2022-10-31 11:36
bug77380.phpt
336
B
-rw-rw-r--
2022-10-31 11:36
Save
Rename
--TEST-- Bug #50285 (xmlrpc does not preserve keys in encoded indexed arrays) --SKIPIF-- <?php if (!extension_loaded("xmlrpc")) print "skip"; ?> --FILE-- <?php function test1($func, $params) { return array(1=>'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 = <<<EOD <?xml version="1.0" encoding="UTF-8"?> <methodCall> <methodName>test1</methodName> <params /> </methodCall> 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 = <<<EOD <?xml version="1.0" encoding="UTF-8"?> <methodCall> <methodName>test2</methodName> <params /> </methodCall> 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 = <<<EOD <?xml version="1.0" encoding="UTF-8"?> <methodCall> <methodName>test3</methodName> <params /> </methodCall> 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 = <<<EOD <?xml version="1.0" encoding="UTF-8"?> <methodCall> <methodName>test4</methodName> <params /> </methodCall> 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) }