R: [phpxmlrpc] Re: XML-RPC for PHP Error
giunta.gaetano at sea-aeroportimilano.it
Wed Feb 4 13:30:53 GMT 2004
It might not be the final solution, but if you take a look at the latest patch I posted on sourceforge, there is a possible 'transition' out of this problem:
- if the PHP XML libraries built in are available, it will register 'our' functions with new names (e.g. xmlrpc_encode_new : to be agreed upon)
- if the PHP XML libraries built in are not available, it will register 'our' functions with new names as well as with the canonical ones
Then we can 'deprecate' usage of the canonical names in the next releases in favour of the new nnames and drop them in some years time...
> -----Messaggio originale-----
> Da: phpxmlrpc-bounces at usefulinc.com
> [mailto:phpxmlrpc-bounces at usefulinc.com]Per conto di Jason Stirk
> Inviato: mercoledi 4 febbraio 2004 14:24
> A: Sam
> Cc: phpxmlrpc at usefulinc.com
> Oggetto: [phpxmlrpc] Re: XML-RPC for PHP Error
> After my previous email, I have found a far easier way to solve your
> Disable the PHP XML libraries built in -
> on a *nix box, do this by going to /etc/php.d/xmlrpc.ini (or wherever
> that file is on your distribution) and comment out the line to be
> That will disable the built in PHP XML-RPC functions, and so
> solve your
> Hope this helps.
> Jason Stirk
> On Wed, 2004-02-04 at 21:13, Jason Stirk wrote:
> > Sam,
> > I was wondering if you have had any resolution to your problem with
> > XML-RPC for PHP :
> > Fatal error: Cannot redeclare xmlrpc_decode() in
> > /file_path_here/xmlrpc.inc on line 1380
> > I believe I have found the problem if you are still seeking
> a cause. I
> > guess that you are using PHP >= 4.1. Is this correct?
> > I am having the same problem, but I believe I have found a cause. It
> > seems that in PHP >= 4.1, xmlrpc_decode() is a built in PHP function
> > (see : http://au.php.net/xmlrpc_decode for more details). I
> believe this
> > is what is causing the re-definition problem.
> > As a kludge fix, I you could just rename the function in
> the PHP XML-RPC
> > xmlrpc.inc. The problem with this, as I am sure you can
> see, is that if
> > you upgrade the version of XML-RPC for PHP, your code will break.
> > The only other solution I can think of, is to use a version
> of PHP < 4.1
> > - again, may not be possible depending on your situation.
> > The only other 'simple' solution I can see is for the PHP XML-RPC
> > developers to change all of their function names - this may
> be a good
> > argument for this to happen if this library differs from the XML-RPC
> > libraries which are now in the main PHP library.
> > Hope this sheds some light upon your problem.
> > Regards,
> > Jason Stirk
More information about the phpxmlrpc