Conclusion of libxml2 Issues – Use PHP 5.2.9 & libxml2 2.7.3

Updates
17 Mar 2009 @ 3:05pm : WordPress & libxml2 Episode IV: A New Plugin

With the release of PHP 5.2.9 all of the pieces are available to solve the XML bracket stripping puzzle. To make it perfectly clear, you need to have BOTH libxml2 version 2.7.3 and PHP version 5.2.9 in order to make this work. Mixing either one with older versions will not work. When testing this also confirm that your build of PHP 5.2.9 is using the correct version of libxml2 and not some older version (you can easily check this using phpinfo( ) ).

I went back to my test setup and built PHP 5.2.9 with libxml2 2.7.3 and added new posts to a WordPress blog via XML-RPC with lots of tags in the post body. They all came through intact. Not a single bracket missing.

If you are on a host that is using known broken version combinations of PHP & libxml2 now you can tell them exactly which versions do work. Feel free to point them this and previous posts (Problems With libxml2 For WordPress XML-RPC Users and Update On libxml2 Issues) if they want some history and context of the problem.

No related posts.

This entry was posted in Posts and tagged , , , . Bookmark the permalink.

21 Responses to Conclusion of libxml2 Issues – Use PHP 5.2.9 & libxml2 2.7.3

  1. Pingback: Problems With libxml2 For WordPress XML-RPC Users || Joseph Scott

  2. Pingback: Update On libxml2 Issues || Joseph Scott

  3. Pingback: ScribFire XML RPC client not working « Hermanland

  4. Pingback: Testing Sunday Morning Esosoft Fix

  5. Brett says:

    I have now have PHP 5.2.9 with libxml2 2.7.3 and I am still having the same problem :(

  6. Brett says:

    Yes I did :( Maybe there is just some other problem somewhere that I am not aware of.

  7. Tommy Green says:

    was this problem ever resolved?

    just hoping that when i upgrade my php from 5.2.8 to 5.2.9 and my libxml from 2.7.2 to 2.73 that my imported posts from RSS feeds will work again and not stop removing the “”. :-)

    • Tommy Green says:

      rather, stop removing the html bracket tags :-)

    • Joseph Scott says:

      Yes, using PHP 5.2.9 that is build with libxml2 2.7.3 fixes the problem.

      • Is there any way for a ‘normal’ user to upgrade the version of libXML that comes with XAMPP 1.0.1, as unfortunately, they’ve included libXML 2.7.2 and I’m having this problem. I’m running OS X 10.4.11 and don’t seem to be able to compile anything on it — but I really don’t know much about this. I don’t suppose Apache Friends is going to do this any time soon? Right now neither MAMP, which recently stopped working all together, and XAMPP, are functioning properly and I do a lot of blog development.

        • Joseph Scott says:

          I’m not familiar enough with XAMPP to know how hard it would be to build it with a new version of libxml2. You may just have to use the plugin work and bug the XAMPP devs to use versions of PHP5 and libxml2 that aren’t broken.

      • stef says:

        i have the already known issue with the stripped brakets using wordpress and posterous.

        i have already read your solution…

        i have installed ” libxml2 fix ” but it didn’t worked.

        then i upgraded php and libxml2 to php 5.2.12 and libxml2 2.7.6 on a fedora core 8. and still is not working.

        i am using php from 3.fc8.art from a plesk repository. (i have plesk installed)
        can be the problem with the php plesk release of php?
        how to solve?

        thanks

  8. Pingback: Bug in libxml2 v2.7.0-2.7.2 Affecting Wordpress « bldrco.net

  9. Pingback: evilzenscientist :: thoughts » PHP XML parsing bug – a workaround and a fix

  10. Thanks for the blog – saved me some troubleshooting and diagnostics time.

  11. thoughtdeveloper says:

    I experienced the problem with libxml2 Version 2.6.27 and PHP Version 5.2.9, and my host refused to do anything. I used the plug-in but I had to edit the if statement to work with my older version of libxml2. Once I did that, problem was solved.

  12. Pingback: WordPress for iPhone is good » Claes Karlsson

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>