Add VMRegAnchors to the XMLWriter extension
commit23a5623b5936baa1e45baa6a7969ec3821f0af80
authorChristopher Dykes <cdykes@fb.com>
Mon, 1 Aug 2016 17:42:00 +0000 (1 10:42 -0700)
committerHhvm Bot <hhvm-bot-bot@fb.com>
Mon, 1 Aug 2016 17:55:57 +0000 (1 10:55 -0700)
tree8abd7d0bde01e5c5375c5efe903920a9ba0125d6
parent3dab95d17415db5740fac516d5d2535396c26ef6
Add VMRegAnchors to the XMLWriter extension

Summary:
The issue is that if the writer has been opened from a URI, we register `XMLWriterData::write_file` as the write function, and if that URI points to a stream type that is implemented in PHP, the writeImpl will need to re-enter the VM.
Closes: https://github.com/facebook/hhvm/issues/4511

Reviewed By: paulbiss

Differential Revision: D3635715

fbshipit-source-id: df24b964addfb7add5bcaaaf18074a119935149e
hphp/runtime/ext/xmlwriter/ext_xmlwriter.cpp