开发者

Debugging of object of DOMXPath and DOMDocument

开发者 https://www.devze.com 2023-01-21 14:50 出处:网络
We use echo or print_r to get value of variables while debugging PHP code. But, object of DOMXPath or DOMDocument are not captured in echo or print_r.

We use echo or print_r to get value of variables while debugging PHP code.

But, object of DOMXPath or DOMDocument are not captured in echo or print_r.

How to get values from above objects while debug开发者_Python百科ging PHP code?


This is a bug:

  • Bug #48527: DOM XML classes do not expose properties to Reflection

For some reason, DOM* classes do not expose their properties, neither to Reflection, nor to any other function capable of inspecting objects. You'd have to write a custom inspector that collects the properties manually.

0

精彩评论

暂无评论...
验证码 换一张
取 消