cvs: pear /XML_RPC RPC.php package.xml package2.xml
| From: | Daniel Convissor | Date: | Sun, 18 Sep 2005 19:51:27 +0000 |
| Subject: | cvs: pear /XML_RPC RPC.php package.xml package2.xml | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-34853@lists.php.net to get a copy of this message | ||
danielc Sun Sep 18 15:51:27 2005 EDT
Modified files:
/pear/XML_RPC RPC.php package.xml package2.xml
Log:
* Better fix for empty <value>'s without <types>'s. Bug 5315.
http://cvs.php.net/diff.php/pear/XML_RPC/RPC.php?r1=1.85&r2=1.86&ty=u
Index: pear/XML_RPC/RPC.php
diff -u pear/XML_RPC/RPC.php:1.85 pear/XML_RPC/RPC.php:1.86
--- pear/XML_RPC/RPC.php:1.85 Sat Sep 17 12:01:46 2005
+++ pear/XML_RPC/RPC.php Sun Sep 18 15:51:24 2005
@@ -32,7 +32,7 @@
* @author Martin Jansen <mj@php.net>
* @author Daniel Convissor <danielc@php.net>
* @copyright 1999-2001 Edd Dumbill, 2001-2005 The PHP Group
- * @version CVS: $Id: RPC.php,v 1.85 2005/09/17 16:01:46 danielc Exp $
+ * @version CVS: $Id: RPC.php,v 1.86 2005/09/18 19:51:24 danielc Exp $
* @link http://pear.php.net/package/XML_RPC
*/
@@ -447,8 +447,12 @@
case 'VALUE':
// deal with a string value
- if ($XML_RPC_xh[$parser]['vt'] == $XML_RPC_String) {
+ if (strlen($XML_RPC_xh[$parser]['ac']) > 0 &&
+ $XML_RPC_xh[$parser]['vt'] == $XML_RPC_String) {
$XML_RPC_xh[$parser]['value'] = $XML_RPC_xh[$parser]['ac'];
+ } elseif ($XML_RPC_xh[$parser]['lv'] == 1) {
+ // The <value> element was empty.
+ $XML_RPC_xh[$parser]['value'] = '';
}
$temp = new XML_RPC_Value($XML_RPC_xh[$parser]['value'],
$XML_RPC_xh[$parser]['vt']);
http://cvs.php.net/diff.php/pear/XML_RPC/package.xml?r1=1.67&r2=1.68&ty=u
Index: pear/XML_RPC/package.xml
diff -u pear/XML_RPC/package.xml:1.67 pear/XML_RPC/package.xml:1.68
--- pear/XML_RPC/package.xml:1.67 Sat Sep 17 12:10:53 2005
+++ pear/XML_RPC/package.xml Sun Sep 18 15:51:24 2005
@@ -2,7 +2,7 @@
<!DOCTYPE package SYSTEM "http://pear.php.net/dtd/package-1.0">
<package version="1.0">
- <!-- $Id: package.xml,v 1.67 2005/09/17 16:10:53 danielc Exp $ -->
+ <!-- $Id: package.xml,v 1.68 2005/09/18 19:51:24 danielc Exp $ -->
<name>XML_RPC</name>
<summary>PHP implementation of the XML-RPC protocol</summary>
@@ -31,7 +31,7 @@
<release>
<version>1.4.2</version>
- <date>2005-09-17</date>
+ <date>2005-09-18</date>
<state>stable</state>
<notes><![CDATA[
* Allow empty <value>'s without <types>'s. Bug 5315.
http://cvs.php.net/diff.php/pear/XML_RPC/package2.xml?r1=1.28&r2=1.29&ty=u
Index: pear/XML_RPC/package2.xml
diff -u pear/XML_RPC/package2.xml:1.28 pear/XML_RPC/package2.xml:1.29
--- pear/XML_RPC/package2.xml:1.28 Sat Sep 17 12:01:46 2005
+++ pear/XML_RPC/package2.xml Sun Sep 18 15:51:24 2005
@@ -8,7 +8,7 @@
http://pear.php.net/dtd/package-2.0
http://pear.php.net/dtd/package-2.0.xsd">
- <!-- $Id: package2.xml,v 1.28 2005/09/17 16:01:46 danielc Exp $ -->
+ <!-- $Id: package2.xml,v 1.29 2005/09/18 19:51:24 danielc Exp $ -->
<name>XML_RPC</name>
<channel>pear.php.net</channel>
@@ -32,7 +32,7 @@
<active>yes</active>
</lead>
- <date>2005-09-17</date>
+ <date>2005-09-18</date>
<version>
<release>1.4.2</release>