--- Begin Message ---
>From edd  Thu Feb 28 11:15:50 2002
Received: from russd.com (adsl-190-68.iomart.com [212.38.190.68]) by 
edmundd.iserver.net (8.11.6) id g1SIFnG39214 for <[EMAIL PROTECTED]>; Thu, 28 
Feb 2002 11:15:49 -0700 (MST)
Received: from 2idle [192.168.0.2]
        by russd.com [212.38.190.68]
        with SMTP (MDaemon.PRO.v5.0.4.R)
        for <[EMAIL PROTECTED]>; Thu, 28 Feb 2002 18:19:49 +0000
Message-ID: <001101c1c084$41312380$0200a8c0@mauldeth>
From: "Paul James" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: Bug: PHP Warning on line 333
Date: Thu, 28 Feb 2002 18:18:00 -0000
MIME-Version: 1.0
Content-Type: text/plain;
        charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4807.1700
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
X-MDRemoteIP: 192.168.0.2
X-Return-Path: [EMAIL PROTECTED]
X-MDaemon-Deliver-To: [EMAIL PROTECTED]

In xmlrpc.inc on line 333 a Warning is thrown if the array element
$_xh[$parser]['ac'] does not yet exist.

$_xh[$parser]['ac'].=str_replace('$', '\$', str_replace ('"', '\"',
str_replace(chr(92), $xmlrpc_backslash, $data)));

I resolved the problem by first checking to see if the element exists, and
if not creating it and assigning it to the empty string.

if (!isset($_xh[$parser]['ac'])) $_xh[$parser]['ac'] = '';

This bug is in release 1.02 and only occurs if PHP has Warnings enabled.



--- End Message ---

Reply via email to