go to bug id or search bugs for
If XML documents you are processing are using QNames inside attribute or element values there is need to get list of all XML namespaces declared for a particular element inside DOM.
libxml2 has function for this
Unfortunately this function is not exposed in PHP DOM extensions and there is no other way how to get namespaces inscope for some element.
Add a Patch
Add a Pull Request