equal
deleted
inserted
replaced
13 * to license@zend.com so we can send you a copy immediately. |
13 * to license@zend.com so we can send you a copy immediately. |
14 * |
14 * |
15 * @category Zend |
15 * @category Zend |
16 * @package Zend_XmlRpc |
16 * @package Zend_XmlRpc |
17 * @subpackage Client |
17 * @subpackage Client |
18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
18 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
20 * @version $Id: Client.php 24593 2012-01-05 20:35:02Z matthew $ |
20 * @version $Id$ |
21 */ |
21 */ |
22 |
22 |
23 |
23 |
24 /** |
24 /** |
25 * For handling the HTTP connection to the XML-RPC service |
25 * For handling the HTTP connection to the XML-RPC service |
69 * An XML-RPC client implementation |
69 * An XML-RPC client implementation |
70 * |
70 * |
71 * @category Zend |
71 * @category Zend |
72 * @package Zend_XmlRpc |
72 * @package Zend_XmlRpc |
73 * @subpackage Client |
73 * @subpackage Client |
74 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
74 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
75 * @license http://framework.zend.com/license/new-bsd New BSD License |
75 * @license http://framework.zend.com/license/new-bsd New BSD License |
76 */ |
76 */ |
77 class Zend_XmlRpc_Client |
77 class Zend_XmlRpc_Client |
78 { |
78 { |
79 /** |
79 /** |
255 */ |
255 */ |
256 public function doRequest($request, $response = null) |
256 public function doRequest($request, $response = null) |
257 { |
257 { |
258 $this->_lastRequest = $request; |
258 $this->_lastRequest = $request; |
259 |
259 |
260 iconv_set_encoding('input_encoding', 'UTF-8'); |
260 if (PHP_VERSION_ID < 50600) { |
261 iconv_set_encoding('output_encoding', 'UTF-8'); |
261 iconv_set_encoding('input_encoding', 'UTF-8'); |
262 iconv_set_encoding('internal_encoding', 'UTF-8'); |
262 iconv_set_encoding('output_encoding', 'UTF-8'); |
|
263 iconv_set_encoding('internal_encoding', 'UTF-8'); |
|
264 } else { |
|
265 ini_set('input_encoding', 'UTF-8'); |
|
266 ini_set('output_encoding', 'UTF-8'); |
|
267 ini_set('default_charset', 'UTF-8'); |
|
268 } |
263 |
269 |
264 $http = $this->getHttpClient(); |
270 $http = $this->getHttpClient(); |
265 if($http->getUri() === null) { |
271 if($http->getUri() === null) { |
266 $http->setUri($this->_serverAddress); |
272 $http->setUri($this->_serverAddress); |
267 } |
273 } |