Some versions of libxml2 didn’t work properly with PHP, resulting in brackets being stripped from XML. This showed up most often in XML-RPC requests being mangled. This was ultimately resolved with the release of PHP 5.2.9 and libxml2 2.7.3. As of today (16 March 2009) there are still hosts that are running versions of libxml2 and PHP that are known to be broken. To help the ease the pain of WordPress users stuck in this unfortunate situation I wrote a plugin that includes a common hack to work around this problem for XML-RPC requests.
Kudos to Peter Westwood on suggesting a technique to make this work as a plugin instead of hard coding it into WordPress.
WordPress ticket #7771
My blog posts on the subject:
- Problems With libxml2 For WordPress XML-RPC Users
- Update On libxml2 Issues
- Conclusion of libxml2 Issues – Use PHP 5.2.9 & libxml2 2.7.3
- WordPress & libxml2 Episode IV: A New Plugin
The plugin is available for download at http://wordpress.org/extend/plugins/libxml2-fix/.
0.1 – 17 March 2009
- Initial release
0.2 – 15 April 2009
- Enable the fix even if the libxml2 version is 2.7.3 if the PHP is also less than 5.2.9
0.2.2 – 15 April 2009
- Fix typo in version 0.2 (noticed by Rein)
0.2.3 – 29 December 2009
- Add 2.6.27 to the list of libxml versions that trigger the fix