facebook/hiphop-php — pull request #1084 by danslo (2013-09-22 04:11:17+00:00)
Title: don't let root objects go out of scope

Similar to m_domNode, we must store a reference to the root object.

We may need the root object to do xpath lookups on child objects, regardless of parent object going out of scope.

The attached test is self-explanatory.