Issues

ZF-11016: Zend_XmlRpc_Server returns int result as string

Description

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 === <?xml version="1.0" encoding="UTF-8"?>Session.getQueryLimit === Request ===

=== Response === <?xml version="1.0" encoding="UTF-8"?> 100 === Response ===

Comments

Zend_XmlRpc_Value.php line 348

change from

        case 'integer':

to case 'int':

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

Greetings Ramon