ID: 45996 Comment by: jeffrey dot roberts at ibsgroup dot org Reported By: phpbugs at colin dot guthr dot ie Status: Assigned Bug Type: XML related Operating System: Mandriva Linux PHP Version: 5.2.6 Assigned To: rrichards New Comment:
For those as challenged as me at determining how to either downgrade libxml2 or recompile with libexpat while using cPANEL (easyapache), here is a link to the details. I confirm that after recompiling it is a workaround for the problem. http://blog.code-head.com/fixing-libxml-php-bug-and-issues-with-html-entities-libexpat First you will need to find out where libexpat is located on your server, it¡¯s probably here: /usr/lib To find out for sure, open this folder (/usr/lib) and look for the file: libexpat.so If you can¡¯t find it, log in as root via SSH and enter: whereis libexpat.so This should list the folder in which libexpat is located. After all this you will need to compile PHP to use libexpat instead of libxml, so go to: /var/cpanel/easy/apache/rawopts/ And create a file and name it ¡°all_php5¡å (no quotes), if there is a file with this name edit it and add these lines to the end of it: ¨Cwith-expat=builtin ¨Cwith-libexpat-dir=/usr/lib (lines start with two dashes ¡°-¡± that are not showing up here for some reason) Remember that depending on where libexpat is located on your server you might need to edit the second line. Now compile Apache and everything should work fine! Previous Comments: ------------------------------------------------------------------------ [2008-12-28 13:37:13] phpbugs at colin dot guthr dot ie While I do not doubt that this is an annoying bug, there are very simple and clear workarounds. I'm really not seeing why everyone is so upset about this. I reported the bug and we fixed the Mandriva package almost immediately with the work around and I'm not aware of any fallout from that change. ------------------------------------------------------------------------ [2008-12-28 03:55:04] alex at magnet dot ru 4 month!!! This is not serious?! ------------------------------------------------------------------------ [2008-12-25 02:41:10] gordon at kanazawa-gu dot ac dot jp This issue also affects Moodle backup+restore and HotPot module http://tracker.moodle.org/browse/MDL-17136 ------------------------------------------------------------------------ [2008-12-17 15:18:50] valli at icsurselva dot ch Where can I find the libxml2 patch? Does someone have a link to the libxml2 bug reporting tool which describes this issue? ------------------------------------------------------------------------ [2008-12-17 00:56:14] rricha...@php.net Does no one pay attention to the comments? The fix for this needs to happen on the libxml2 layer. The next version of libxml2 should resolve this and this bug is being kept open only in case some modification to the extension also needs to occur with the fix. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/45996 -- Edit this bug report at http://bugs.php.net/?id=45996&edit=1