Currently, if you recursively call getDocNamespaces on any SimpleXML node it retrieves ALL the namespaces for the entire document, regardless of what node you call it on. This patch adds a second bool argument called `from_root` that allows you to specify if you want all the namespaces from the root (default for BC) or only the namespaces from and below the node you call it on.
I submitted this patch a while ago and haven't heard anything. I was recently contacted by someone asking if this feature was released b/c they needed this functionality. I've updated the patch against PHP-5.4 on github (https://github.com/php/php-src/pull/112). Is there some procedure I am missing for getting this committed? Is there some place I should be going for this discussion? I couldn't find an IRC channel that was helpful w/ core php development. Thank you, -- Lonny Kapelushnik http://lonnylot.com (732) 807-5509