Forums | MacLife
You are not logged in.
#1 2009-03-22 9:11 am
Anyone running php 5.2.9 w/ XML support ??
I may have found a bug with php DOMAttr - I'm running 5.2.5 and upgrading to 5.2.9 would be a PITA as it would probably require rebuilding some PECL stuff I'm using as well.
Anyway - here's the source (small) -
http://www.clfsrpm.net/bugs/domattr.phps
Output in php 5.2.5 -
http://www.clfsrpm.net/bugs/domattr.php
Does it do the same thing in 5.2.9 ??
In her right hand Jenny held the Bible of her mother
Jenny had a pistol in the other
-- Steve Taylor
Offline
#2 2009-03-22 5:15 pm
Re: Anyone running php 5.2.9 w/ XML support ??
It was my misunderstanding.
What I needed to do is see if an xmlns attribute was defined.
If an xmlns attribute was defined, then I need to check if the elemement hasAttributeNS($xmlns,$attribute->name)
It requires a bit more code to do what I need to do as I need to detect whether or not I need to use hasAttributeNS or just hasAttribute and then do two different logic loops depending upon whether it is namespaced but it works.
In her right hand Jenny held the Bible of her mother
Jenny had a pistol in the other
-- Steve Taylor
Offline
