[wp-trac] Re: [WordPress Trac] #4248: Workaround for XML-RPC bug in
PHP 5.2.2
WordPress Trac
wp-trac at lists.automattic.com
Fri May 11 00:48:38 GMT 2007
#4248: Workaround for XML-RPC bug in PHP 5.2.2
---------------------+------------------------------------------------------
Reporter: kelson | Owner: rob1n
Type: defect | Status: new
Priority: normal | Milestone: 2.3
Component: XML-RPC | Version:
Severity: major | Resolution:
Keywords: xmlrpc |
---------------------+------------------------------------------------------
Old description:
> I'm not sure if this is even appropriate here, since it's not really
> WordPress' fault, but there's a bug in PHP 5.2.2 that prevents XMLRPC
> from working properly. Basically, $HTTP_RAW_POST_DATA is never set, even
> when called via POST or with the config option set to always be on.
>
> It's possible to work around it in WP 2.2 by adding one line to the
> beginning of WordPress' xmlrpc.php file, right before the first mention
> of the variable.
>
> `$HTTP_RAW_POST_DATA = file_get_contents("php://input");`
>
> It's apparently fixed in the PHP CVS, but who knows how long it'll be
> before 5.2.3 comes out.
>
> Anyway, I don't know if you'll want to include a workaround for a single-
> version bug (though this is the most current "stable" release) or what
> impact this would have running on other versions of PHP, but I thought
> I'd post it just to convey the info.
>
> * [http://www.hyperborea.org/journal/archives/2007/05/07/automattic-
> stats/ My experience troubleshooting the issue]
> * [http://mph.puddingbowl.org/2007/05/10/note-to-other-wordpress-users-
> wondering-why-the-hell-their-clients-are-acting-strangely-with-dreamhost/
> A post that identified the cause]
> * [http://bugs.php.net/bug.php?id=41293 PHP Bug 41293]
New description:
I'm not sure if this is even appropriate here, since it's not really
WordPress' fault, but there's a bug in PHP 5.2.2 that prevents XMLRPC from
working properly. Basically, $HTTP_RAW_POST_DATA is never set, even when
called via POST or with the config option set to always be on.
It's possible to work around it in WP 2.2 by adding one line to the
beginning of WordPress' xmlrpc.php file, right before the first mention of
the variable.
`$HTTP_RAW_POST_DATA = file_get_contents("php://input");`
It's apparently fixed in the PHP CVS, but who knows how long it'll be
before 5.2.3 comes out.
Anyway, I don't know if you'll want to include a workaround for a single-
version bug (though this is the most current "stable" release) or what
impact this would have running on other versions of PHP, but I thought I'd
post it just to convey the info.
* [http://www.hyperborea.org/journal/archives/2007/05/07/automattic-
stats/ My experience troubleshooting the issue]
* [http://mph.puddingbowl.org/2007/05/10/note-to-other-wordpress-users-
wondering-why-the-hell-their-clients-are-acting-strangely-with-dreamhost/
A post that identified the cause]
* [http://bugs.php.net/bug.php?id=41293 PHP Bug 41293]
--
Ticket URL: <http://trac.wordpress.org/ticket/4248#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list