Skip to content

Commit 8c4f204

Browse files
committed
Sync xmlrpc with EN
1 parent dd0fffd commit 8c4f204

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

reference/xmlrpc/functions/xmlrpc-encode-request.xml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- $Revision$ -->
3-
<!-- EN-Revision: 96c9d88bad9a7d7d44bfb7f26c226df7ee9ddf26 Maintainer: nilgun Status: ready -->
2+
<!-- EN-Revision: 3abd17e61d5022d503604cc06894254e3281acf5 Maintainer: nilgun Status: ready -->
43
<refentry xml:id="function.xmlrpc-encode-request" xmlns="http://docbook.org/ns/docbook">
54
<refnamediv>
65
<refname>xmlrpc_encode_request</refname>
@@ -99,12 +98,14 @@
9998
<programlisting role="php">
10099
<![CDATA[
101100
<?php
102-
$request = xmlrpc_encode_request("method", array(1, 2, 3));
103-
$context = stream_context_create(array('http' => array(
104-
'method' => "POST",
105-
'header' => "Content-Type: text/xml",
106-
'content' => $request
107-
)));
101+
$request = xmlrpc_encode_request("method", [1, 2, 3]);
102+
$context = stream_context_create([
103+
'http' => [
104+
'method' => "POST",
105+
'header' => "Content-Type: text/xml",
106+
'content' => $request,
107+
]
108+
]);
108109
$file = file_get_contents("http://www.example.com/xmlrpc", false, $context);
109110
$response = xmlrpc_decode($file);
110111
if ($response && xmlrpc_is_fault($response)) {

0 commit comments

Comments
 (0)