* Added the server class and demonstrations\r
\r
* Fixed bugs in the XML parsing and reworked it\r
-\r
-\r
-$Id: ChangeLog,v 1.96 2009/03/16 19:39:11 ggiunta Exp $\r
# Makefile for phpxmlrpc library\r
-# $Id: Makefile,v 1.37 2008/03/06 22:37:19 ggiunta Exp $\r
\r
### USER EDITABLE VARS ###\r
\r
<?php
/**
- * @version $Id$
* @author Gaetano Giunta
- * @copyright (C) 2005-2009 G. Giunta
+ * @copyright (C) 2005-2013 G. Giunta
* @license code licensed under the BSD License: http://phpxmlrpc.sourceforge.net/license.txt
*
* @todo switch params for http compression from 0,1,2 to values to be used directly
<?php
/**
- * @version $Id$
* @author Gaetano Giunta
- * @copyright (C) 2005-2009 G. Giunta
+ * @copyright (C) 2005-2013 G. Giunta
* @license code licensed under the BSD License: http://phpxmlrpc.sourceforge.net/license.txt
*
* @todo switch params for http compression from 0,1,2 to values to be used directly
<?php
/**
- * @version $Id$
* @author Gaetano Giunta
- * @copyright (C) 2005-2009 G. Giunta
+ * @copyright (C) 2005-2013 G. Giunta
* @license code licensed under the BSD License: http://phpxmlrpc.sourceforge.net/license.txt
*
* @todo add links to documentation from every option caption
<?php
-// $Id$
$query = '';
if (isset($_GET['run']))
{
/**
* Helper function for the terminally lazy
*
- * @version $Id$
- * @copyright (c) 2006-2009 G. Giunta
+ * @copyright (c) 2006-2013 G. Giunta
* @license code licensed under the BSD License: http://phpxmlrpc.sourceforge.net/license.txt
*/
<?php
-// $Id$
+
include("xmlrpc.inc");
include("xmlrpcs.inc");
* (useful e.g. for ajax-originated calls that can only connect back to
* the originating server)
*
- * @version $Id$
* @author Gaetano Giunta
- * @copyright (C) 2006-2009 G. Giunta
+ * @copyright (C) 2006-2013 G. Giunta
* @license code licensed under the BSD License: http://phpxmlrpc.sourceforge.net/license.txt
*/
*
* Please do not copy this file verbatim into your production server.
*
- * @version $Id$
**/
// give user a chance to see the source for this server instead of running the services
print "</pre>\n";
?>
-<hr/>
-<em>$Id$</em>
</body>
</html>
-# $Id: Makefile,v 1.13 2008/03/07 13:01:55 ggiunta Exp $\r
\r
### USER EDITABLE VARS ###\r
\r
/**
* Script used to convert docbook source to human readable docs
*
- * @version $Id$
- * @copyright (c) 2007-2009 G. Giunta
+ * @copyright (c) 2007-2013 G. Giunta
*/
if ($_SERVER['argc'] < 4)
xmlns:fo="http://www.w3.org/1999/XSL/Format">\r
<!--\r
Customization xsl stylesheet for docbook to pdf transform\r
- @version $Id: custom.fo.xsl,v 1.4 2008/03/06 18:58:44 ggiunta Exp $\r
@author Gaetano Giunta\r
- @copyright (c) 2007-2009 G. Giunta\r
+ @copyright (c) 2007-2013 G. Giunta\r
@license\r
-->\r
\r
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">\r
<!--\r
Customization xsl stylesheet for docbook to chunked html transform\r
- @version $Id: custom.xsl,v 1.3 2008/03/06 18:58:44 ggiunta Exp $\r
@author Gaetano Giunta\r
- @copyright (c) 2007-2009 G. Giunta\r
+ @copyright (c) 2007-2013 G. Giunta\r
@license\r
-->\r
\r
/**
* takes a dir as arg, highlights all php code found in html files inside
*
- * @version $Id$
* @author Gaetano Giunta
- * @copyright (c) 2007-2009 G. Giunta
+ * @copyright (c) 2007-2013 G. Giunta
*/
function highlight($file)
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
<!--
PHP-XMLRPC User manual
-$Id: xmlrpc_php.xml,v 1.27 2008/09/19 18:35:33 ggiunta Exp $
-->
<book lang="en">
<title>XML-RPC for PHP</title>
<?php\r
// by Edd Dumbill (C) 1999-2002\r
// <edd@usefulinc.com>\r
-// $Id: xmlrpc.inc,v 1.174 2009/03/16 19:36:38 ggiunta Exp $\r
\r
// Copyright (c) 1999,2000,2002 Edd Dumbill.\r
// All rights reserved.\r
* PHP-XMLRPC "wrapper" functions\r
* Generate stubs to transparently access xmlrpc methods as php functions and viceversa\r
*\r
- * @version $Id: xmlrpc_wrappers.inc,v 1.13 2008/09/20 01:23:47 ggiunta Exp $\r
* @author Gaetano Giunta\r
- * @copyright (C) 2006-2009 G. Giunta\r
+ * @copyright (C) 2006-2013 G. Giunta\r
* @license code licensed under the BSD License: http://phpxmlrpc.sourceforge.net/license.txt\r
*\r
* @todo separate introspection from code generation for func-2-method wrapping\r
<?php\r
// by Edd Dumbill (C) 1999-2002\r
// <edd@usefulinc.com>\r
-// $Id: xmlrpcs.inc,v 1.71 2008/10/29 23:41:28 ggiunta Exp $\r
\r
// Copyright (c) 1999,2000,2002 Edd Dumbill.\r
// All rights reserved.\r
/**
* Benchamrking suite for the PHP-XMLRPC lib
* @author Gaetano Giunta
- * @version $Id$
- * @copyright (c) 2005-2009 G. Giunta
+ * @copyright (c) 2005-2013 G. Giunta
* @license code licensed under the BSD License: http://phpxmlrpc.sourceforge.net/license.txt
*
* @todo add a test for response ok in call testing?
* @param string HTTPSSURI
* @param string PROXY
*
- * @version $Id$
- * @copyright (C) 2007-2009 G. Giunta
+ * @copyright (C) 2007-20013 G. Giunta
* @license code licensed under the BSD License: http://phpxmlrpc.sourceforge.net/license.txt
**/
<?php
- /* $Id$ */
include(getcwd().'/parse_args.php');
"a simple CR here".chr(13).
"a simple LF here".chr(10).
"and then LFCR".chr(10).chr(13).
- "last but not least weird names: Günter, Elène, and an xml comment closing tag: -->";
+ "last but not least weird names: G�nter, El�ne, and an xml comment closing tag: -->";
$f=new xmlrpcmsg('examples.stringecho', array(
new xmlrpcval($sendstring, 'string')
));
}
function testUnicodeInMemberName(){
- $v = array('Günter, Elène' => new xmlrpcval(1));
+ $v = array('G�nter, El�ne' => new xmlrpcval(1));
$r = new xmlrpcresp(new xmlrpcval($v, 'struct'));
$r = $r->serialize();
$m = new xmlrpcmsg('dummy');
$r = $m->parseResponse($r);
$v = $r->value();
- $this->assertEquals($v->structmemexists('Günter, Elène'), true);
+ $this->assertEquals($v->structmemexists('G�nter, El�ne'), true);
}
function testUnicodeInErrorString()
<!-- $Id -->
<!-- found by G. giunta, covers what happens when lib receives
UTF8 chars in reponse text and comments -->
-<!-- àüèàüè -->
+<!-- ���àüè -->
<methodResponse>
<fault>
<value>
</member>
<member>
<name>faultString</name>
-<value><string>àüèàüè</string></value>
+<value><string>���àüè</string></value>
</member>
</struct>
</value>
$m=new xmlrpcmsg('dummy');
$r=$m->parseResponse($response);
$v=$r->faultString();
- $this->assertEquals('àüèàüè', $v);
+ $this->assertEquals('������', $v);
}
function testValidNumbers()
{
$s = new xmlrpcmsg('dummy');
$f = "HTTP/1.1 200 OK\r\nContent-type: text/xml; charset=UTF-8\r\n\r\n".'<?xml version="1.0"?><methodResponse><params><param><value><struct><member><name>userid</name><value>311127</value></member>
-<member><name>dateCreated</name><value><dateTime.iso8601>20011126T09:17:52</dateTime.iso8601></value></member><member><name>content</name><value>'.utf8_encode('àüèàüè').'</value></member><member><name>postid</name><value>7414222</value></member></struct></value></param></params></methodResponse>
+<member><name>dateCreated</name><value><dateTime.iso8601>20011126T09:17:52</dateTime.iso8601></value></member><member><name>content</name><value>'.utf8_encode('������').'</value></member><member><name>postid</name><value>7414222</value></member></struct></value></param></params></methodResponse>
';
$r = $s->parseResponse($f, false, 'phpvals');
$v = $r->value();
$v = $v['content'];
- $this->assertEquals("àüèàüè", $v);
+ $this->assertEquals("������", $v);
$f = '<?xml version="1.0" encoding="utf-8"?><methodResponse><params><param><value><struct><member><name>userid</name><value>311127</value></member>
-<member><name>dateCreated</name><value><dateTime.iso8601>20011126T09:17:52</dateTime.iso8601></value></member><member><name>content</name><value>'.utf8_encode('àüèàüè').'</value></member><member><name>postid</name><value>7414222</value></member></struct></value></param></params></methodResponse>
+<member><name>dateCreated</name><value><dateTime.iso8601>20011126T09:17:52</dateTime.iso8601></value></member><member><name>content</name><value>'.utf8_encode('������').'</value></member><member><name>postid</name><value>7414222</value></member></struct></value></param></params></methodResponse>
';
$r = $s->parseResponse($f, false, 'phpvals');
$v = $r->value();
$v = $v['content'];
- $this->assertEquals("àüèàüè", $v);
+ $this->assertEquals("������", $v);
}
function testUTF8IntString()
/**
* Verify compatibility level of current php install with php-xmlrpc lib
*
- * @version $Id$
* @author Gaetano Giunta
- * @copyright (C) 2006-2009 G. Giunta
+ * @copyright (C) 2006-2013 G. Giunta
* @license code licensed under the BSD License: http://phpxmlrpc.sourceforge.net/license.txt
*
* @todo add a test for php output buffering?