[phpxmlrpc] Strange Happenings with xmlrpc.inc

Nika Jones njones@fredesign.com
Fri, 29 Nov 2002 12:21:41 -0800 (PST)


Hello list:

I'm not sure if this should go on the dev list, or here (because this jus=
t
may be a PHP problem).

I'm using XMLRPC to connect to a Xindice Database, everything works well.

except...

when I pull a document from the database and a line starts with a "-" the=
n
the XMLRPC will not evaluate the payload to return valid XML.

I have the debugging on and when the payload is returned with a "-" at th=
e
beginning (or near the beginning) of a line then I don't receive the...

---EVALING---[xxxx chars]---
new xmlrpcval("<?xml version=3D\"1.0\"?>
=85
------------------

that signifies XML is being returned... I get **Nothing**

I was copying and pasting text into a textarea and I have a script that
rips out all of the html tags, before the textarea is sent to the Xindice
database. I also see that the data is placed in the document just fine, i=
n
fact I see all of the data in XML document (shown in the servers response
to the XMLRPC call). But I don't get the "Evaling" part of the XMLRPC
payload...

Also this just appears to be in CDATA fields. It's never happened in an
attribute field were I have a "-" character.

?? Just thought you'd like to know.

Nika

p.s. as a workaround I just substitute all of my "-" with "*minus;".