PHP 5.2.2 breaks XMLRPC

In case you think about updating PHP to 5.2.2, one short piece of advice: Don’t. PHP 5.2.2 will break most if not all XMLRPC calls because it (again) fails to set $HTTP_RAW_POST_DATA. This will make all kinds of services unavailable especially blogs rely on. So better wait for PHP 5.2.3 or at least use the latest snapshot from CVS.

In case you’ve already updated and experience errors in your applications, here’s the quick fix for your code:

if (!isset($HTTP_RAW_POST_DATA)) {
$HTTP_RAW_POST_DATA = file_get_contents(‘php://input’);
}

[ More >>> ]

Incoming search terms:

This entry was posted in Helden der Technik, Software. Bookmark the permalink.

2 Responses to PHP 5.2.2 breaks XMLRPC

  1. Pieterjan says:

    This has been in outstanding issue for months on the Flickr as well as WordPress support forums.

    Thanks for helping me finding a solution.

    I noticed that more and more often, missing or broken features in websites can be related to php updates.

    It really makes you wonder…

    Perhaps you are right, and php programmers are indeed “douchebags”. :)

  2. Pingback: Finally. — Life is a Thrill

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>