? package2.xml Index: XML/RPC2/Backend/Php/Value/Boolean.php =================================================================== RCS file: /repository/pear/XML_RPC2/XML/RPC2/Backend/Php/Value/Boolean.php,v retrieving revision 1.3 diff -u -p -r1.3 Boolean.php --- XML/RPC2/Backend/Php/Value/Boolean.php 22 Jan 2006 01:58:22 -0000 1.3 +++ XML/RPC2/Backend/Php/Value/Boolean.php 6 Sep 2006 15:19:45 -0000 @@ -96,8 +96,7 @@ class XML_RPC2_Backend_Php_Value_Boolean // xpath is used both in an element and in one of its children $xml = simplexml_load_string($xml->asXML()); $value = $xml->xpath('/value/boolean/text()'); - - return (boolean) $value[0]; + return (boolean) ((string) $value[0]); } // }}} Index: XML/RPC2/Backend/Php/Value/Double.php =================================================================== RCS file: /repository/pear/XML_RPC2/XML/RPC2/Backend/Php/Value/Double.php,v retrieving revision 1.4 diff -u -p -r1.4 Double.php --- XML/RPC2/Backend/Php/Value/Double.php 22 Jan 2006 01:58:22 -0000 1.4 +++ XML/RPC2/Backend/Php/Value/Double.php 6 Sep 2006 15:19:45 -0000 @@ -84,7 +84,7 @@ class XML_RPC2_Backend_Php_Value_Double // xpath is used both in an element and in one of its children $xml = simplexml_load_string($xml->asXML()); $value = $xml->xpath('/value/double/text()'); - return (double) $value[0]; + return (double) ((string) $value[0]); } // }}} Index: XML/RPC2/Backend/Php/Value/Integer.php =================================================================== RCS file: /repository/pear/XML_RPC2/XML/RPC2/Backend/Php/Value/Integer.php,v retrieving revision 1.4 diff -u -p -r1.4 Integer.php --- XML/RPC2/Backend/Php/Value/Integer.php 22 Jan 2006 01:58:22 -0000 1.4 +++ XML/RPC2/Backend/Php/Value/Integer.php 6 Sep 2006 15:19:45 -0000 @@ -84,7 +84,7 @@ class XML_RPC2_Backend_Php_Value_Integer // xpath is used both in an element and in one of its children $xml = simplexml_load_string($xml->asXML()); $value = $xml->xpath('/value/int/text()|/value/i4/text()'); - return (int) $value[0]; + return (int) ((string) $value[0]); } // }}}