cvs: php4 /pear/XML RPC.php

From: Date: Tue, 03 Jul 2001 19:00:08 +0000
Subject: cvs: php4 /pear/XML RPC.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-201@lists.php.net to get a copy of this message
jon Tue Jul 3 15:00:08 2001 EDT Modified files: /php4/pear/XML RPC.php Log: xmlrpc_decode -> XML_RPC_decode Submitted by: Seth Fitzsimmons <seth@note.amherst.edu> Index: php4/pear/XML/RPC.php diff -u php4/pear/XML/RPC.php:1.5 php4/pear/XML/RPC.php:1.6 --- php4/pear/XML/RPC.php:1.5 Fri Apr 20 08:47:32 2001 +++ php4/pear/XML/RPC.php Tue Jul 3 15:00:07 2001 @@ -1,7 +1,7 @@ <?php // by Edd Dumbill (C) 1999-2000 // <edd@usefulinc.com> -// $Id: RPC.php,v 1.5 2001/04/20 12:47:32 ssb Exp $ +// $Id: RPC.php,v 1.6 2001/07/03 19:00:07 jon Exp $ // License is granted to use or modify this software ("XML-RPC for PHP") // for commercial or non-commercial use provided the copyright of the author @@ -354,8 +354,8 @@ /**************************************************************** -* xmlrpc_decode takes a message in PHP xmlrpc object format and * -* tranlates it into native PHP types. * +* XML_RPC_decode takes a message in PHP xmlrpc object format * +* and tranlates it into native PHP types. * * * * author: Dan Libby (dan@libby.com) * ****************************************************************/ @@ -371,7 +371,7 @@ $arr = array(); for($i = 0; $i < $size; $i++) { - array_append($arr, xmlrpc_decode($xmlrpcval->arraymem($i)) ); + array_append($arr, XML_RPC_decode($xmlrpcval->arraymem($i)) ); } return $arr; } @@ -380,7 +380,7 @@ $arr = array(); while(list($key,$value)=$xmlrpcval->structeach()) { - $arr[$key] = xmlrpc_decode($value); + $arr[$key] = XML_RPC_decode($value); } return $arr; } @@ -388,7 +388,7 @@ /**************************************************************** -* xmlrpc_encode takes native php types and encodes them into * +* XML_RPC_encode takes native php types and encodes them into * * xmlrpc PHP object format. * * BUG: All sequential arrays are turned into structs. I don't * * know of a good way to determine if an array is sequential * @@ -415,7 +415,7 @@ case "object": $arr = array(); while (list($k,$v) = each($php_val)) { - $arr[$k] = xmlrpc_encode($v); + $arr[$k] = XML_RPC_encode($v); } $xmlrpcval->addStruct($arr); break;

« previous php.pear.cvs (#201) next »