ZF-11016: Zend_XmlRpc_Server returns int result as string

Issue Type: Bug Created: 2011-02-01T01:50:11.000+0000 Last Updated: 2011-02-02T02:43:44.000+0000 Status: Resolved Fix version(s): - 1.11.3 (01/Feb/11)

Reporter: Nagy Viktor (anvee) Assignee: Ramon Henrique Ornelas (ramon) Tags: - Zend_XmlRpc_Server

Related issues: Attachments:


The server practically never returns an integer value as a response.

=== Code === require_once 'Zend/XmlRpc/Server.php';

class Session {

* Sample function
* @return int
function getQueryLimit() {
    return 100;


$server = new Zend_XmlRpc_Server(); $server->setClass('Session', 'Session'); echo $server->handle(); === Code ===

=== Request === Session.getQueryLimit === Request ===

=== Response === 100 === Response ===


Posted by Tamas Szomor (noir) on 2011-02-01T03:18:34.000+0000

Zend_XmlRpc_Value.php line 348

change from

        case 'integer':

to case 'int':

Posted by Ramon Henrique Ornelas (ramon) on 2011-02-02T02:43:38.000+0000

Fixed with the issue ZF-10914 in the version 1.11.3.

Greetings Ramon

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.