facebook/hiphop-php — pull request #1069 by danslo (2013-09-17 20:54:24+00:00)
Title: fix xpath crash when used on elements initialized by __construct

When creating children, pass current node as root element. This worked fine for simplexml_load_string, but was working incorrectly when called directly from SimpleXMLElement's __construct.

This fixes both an internal issue at FB, and also #1067.