|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2016-02-03 06:22 UTC] letrunghieu dot cse09 at gmail dot com
-PHP Version: 7.0.2
+PHP Version: 7.0.0
[2016-02-03 06:23 UTC] letrunghieu dot cse09 at gmail dot com
[2016-02-04 10:43 UTC] nikic@php.net
-Summary: xmlrpc_encode_request has incorrect behavior
+Summary: xmlrpc_encode_request ignores encoding option
[2016-02-04 10:46 UTC] nikic@php.net
[2016-02-04 10:46 UTC] nikic@php.net
-Status: Open
+Status: Closed
[2016-07-20 11:33 UTC] davey@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 16:00:01 2025 UTC |
Description: ------------ The `xmlrpc_encode_request` function ignores the value of `encoding` and `escaping` output options if users do not use a explicit value for the `version` option when calling. Note: The xmlrpc extension must be loaded first. Test script: --------------- <?php $params = 'Lê Trung Hiếu'; echo xmlrpc_encode_request('foo', $params, ['encoding' => 'UTF-8', 'escaping' => 'markup']); Expected result: ---------------- <?xml version="1.0" encoding="UTF-8"?> <methodCall> <methodName>foo</methodName> <params> <param> <value> <string>Lê Trung Hiếu</string> </value> </param> </params> </methodCall> Actual result: -------------- <?xml version="1.0" encoding="iso-8859-1"?> <methodCall> <methodName>foo</methodName> <params> <param> <value> <string>Lê Trung Hiếu</string> </value> </param> </params> </methodCall>