ID: 31447 Updated by: [EMAIL PROTECTED] Reported By: phpbug at ebt dot cjb dot net -Status: Open +Status: Bogus Bug Type: DOM XML related Operating System: Red Hat Linux 7.3 PHP Version: 4CVS-2004-01-09 New Comment:
not a php bug ;) Previous Comments: ------------------------------------------------------------------------ [2005-01-09 18:30:51] phpbug at ebt dot cjb dot net Well, that fixed it. I uninstalled (manually removed) libxml2 2.6.16 and ran the RPM update with those packages and all is well. I get "Entity 'asdf' is not defined", which is expected. Sorry the problem wasn't in PHP, but thanks for all the help. ------------------------------------------------------------------------ [2005-01-09 17:58:52] [EMAIL PROTECTED] Something has to be wrong then with either your libxml build or how domxml it being built with it. Try using the rpms built by dag: http://dag.wieers.com/packages/libxml2/libxml2-2.6.16-1.0.rh7.rf.i386.rpm http://dag.wieers.com/packages/libxml2/libxml2-devel-2.6.16-1.0.rh7.rf.i386.rpm http://dag.wieers.com/packages/libxml2/libxml2-python-2.6.16-1.0.rh7.rf.i386.rpm After install of necessary rpms rebuild php and try the tests again. ------------------------------------------------------------------------ [2005-01-09 17:44:11] phpbug at ebt dot cjb dot net That version results in the same error. Is there a way for me to check for _private corruption? The RH7.3 RPM version of libxml2 is installed, which is 2.4.19, but I also have version 2.6.16 installed from its source, with no configure flags. (These are in different places). However, PHP is using 2.6.16 according to php_info(); I'd be happy to use the RPM but there is not one maintained for RH7.3 ------------------------------------------------------------------------ [2005-01-09 12:28:39] [EMAIL PROTECTED] I cant reproduce this either. Your backtrace shows that the correct vals are being passed setting up the libxml parser, so cant explain why this is happening unless libxml is somehow corrupting the parser context _private. Can you try running: $dom = domxml_open_file("test.xml", 0 , $err); var_dump($err); and see if it also segfaults. Are you using libxml rpms from xmlsoft.org or did you compile your own libxml (if self compiled what flags did you configure it with?) ------------------------------------------------------------------------ [2005-01-08 17:27:14] phpbug at ebt dot cjb dot net My libxml2 is version 2.6.16 I have also realized that the problem is not just entities, it's with any XML error at all. If I incorrectly leave a tag open or a quote or anything that makes DOMXML display an error, PHP segfaults and the backtrace shows the error that should have been displayed. ------------------------------------------------------------------------ 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/31447 -- Edit this bug report at http://bugs.php.net/?id=31447&edit=1