Update of /cvsroot/php-blog/serendipity/bundled-libs/XML
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23873/bundled-libs/XML
Modified Files:
RPC.php
Log Message:
Updating to current Version of XML_RPC
Index: RPC.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/bundled-libs/XML/RPC.php,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- RPC.php 28 Mar 2003 20:05:27 -0000 1.1.1.1
+++ RPC.php 26 Jul 2004 15:07:54 -0000 1.2
@@ -1,4 +1,5 @@
<?php
+// /* vim: set expandtab tabstop=4 shiftwidth=4: */
// by Edd Dumbill (C) 1999-2001
// <ed...@us...>
// $Id$
@@ -18,31 +19,35 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
// THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-// Adapted to PEAR standards by Stig Sæther Bakken <st...@ph...> and
+// Adapted to PEAR standards by Stig S�her Bakken <st...@ph...> and
[...1497 lines suppressed...]
+
+ case "string":
+ case "NULL":
+ $XML_RPC_val->addScalar($php_val, $XML_RPC_String);
+ break;
+
+ // <G_Giunta_2001-02-29>
+ // Add support for encoding/decoding of booleans, since they are supported in PHP
+ case "boolean":
+ $XML_RPC_val->addScalar($php_val, $XML_RPC_Boolean);
+ break;
+ // </G_Giunta_2001-02-29>
+
+ case "unknown type":
+ default:
+ $XML_RPC_val = false;
+ break;
}
return $XML_RPC_val;
}
|