Re: FW: [PEAR-DEV] XML-RPC over proxy
| From: | yavo | Date: | Thu, 12 Jul 2001 22:24:55 +0000 |
| Subject: | Re: FW: [PEAR-DEV] XML-RPC over proxy | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-688@lists.php.net to get a copy of this message | ||
Well, the RPC.php has a parse error in the following block. It's because of
the thorth else block not being closed (on line 240) I'm not sure if it
should close after the last else block (line 251) or just before the break
(line 254) mostly because of the bad identation or just because my editor
sucks.
yavo.
!-- Start line 230 --!
case "BASE64":
if ($XML_RPC_xh[$parser]['qt']==1) {
// we use double quotes rather than single so
backslashification works OK
$XML_RPC_xh[$parser]['st'].="\"".
$XML_RPC_xh[$parser]['ac']
. "\"";
} else if ($XML_RPC_xh[$parser]['qt']==2) {
$XML_RPC_xh[$parser]['st'].="base64_decode('".
$XML_RPC_xh[$parser]['ac'] . "')";
} else if ($name=="BOOLEAN") {
$XML_RPC_xh[$parser]['st'].=$_xh[$parser]['ac'];
} else {
// we have an I4, INT or a DOUBLE
// we must check that only 0123456789-.<space> are characters here
if (!ereg("^\-?[0123456789 \t\.]+$", $XML_RPC_xh[$parser]['ac'])) {
// TODO: find a better way of throwing an error
// than this!
error_log("XML-RPC: non numeric value received in INT or DOUBLE");
$XML_RPC_xh[$parser]['st'].="ERROR_NON_NUMERIC_FOUND";
} else {
// it's ok, add it on
$XML_RPC_xh[$parser]['st'].=$XML_RPC_xh[$parser]['ac'];
}
$XML_RPC_xh[$parser]['ac']="";
$XML_RPC_xh[$parser]['qt']=0;
$_xh[$parser]['lv']=3; // indicate we've found a value
break;
case "VALUE":
!-- End line 254 --!
"Martin Jansen" <mail@martin-jansen.de> wrote in message
news:php.pear.dev-667@news.php.net...
> On Thu, 12 Jul 2001 15:09:24 +0200 (CEST), Stig Bakken wrote:
>
> >while you're at it, do yo feel like merging the changes from the last
> >usefulinc distribution?
>
> OK, I did so. But I'm pretty unsure if I did everything right (I don't
know
> much about XML - I suppose I'm to young for such nonsens ;-).
>
> So please guys: __Test it, find the mistakes I've made and fix
> them__.
>
> >I'll buy you a beer at the first occasion if you do :)
>
> I won't forget that :-).
>
> - Martin
>
>