Red Hat Bugzilla – Bug 58801
domxml module in php 4.1.1 does not handle comment xml nodes correctly
Last modified: 2007-04-18 12:39:12 EDT
Description of Problem:
In the domxml module of the php 4.1.1 release the node type is not being set
for comment xml nodes. This causes an uncatchable fatal error if the node is
subsequently queried for attributes. Since the node type is not set, logic
cannot be used to filter out this case.
Version-Release number of selected component (if applicable):
Create XML including a comment node, iterate through it using DOMXML routines
querying for attributes. Try to read $node->Get_Attribute("ATTR").
I have created a patch to the php module and will attach it. As of right now
there is no RedHat php 4.1.1 rpm release, but if/when you make one, you may
want to include this patch.
Created attachment 43394 [details]
Patch to fix problem described.
I have created 4.1.1 RPM's (including this patch). If someone would like to
get these, send an email.
This patch has been incorporated into the PHP cvs tree for a 4.1.2 release.
If a 4.1.1 RedHat RPM is to be made, this patch should be incorporated.
(If I can get the blasted rpm spec file to behave...)
Should be something in rawhide tonight I hope
Well I applied your patch and it's out there in the wild. I'll assume I can
close this bug