Support runtime/base/emulate-zend under MSVC
commit531d9583afcd863102a09851d8aca0bbc435f1de
authorOrvid King <blah38621@gmail.com>
Mon, 24 Aug 2015 21:01:38 +0000 (24 14:01 -0700)
committerhhvm-bot <hhvm-bot@fb.com>
Tue, 25 Aug 2015 18:30:54 +0000 (25 11:30 -0700)
tree50feb9f72c41725b8fb68893fe5f9a9089783637
parent46ac1732e0309f8326e09e9b8ae8724768dcc79f
Support runtime/base/emulate-zend under MSVC

Summary: MSVC errors if you try to statically initialize an array with zero elements, so just exclude that entire section.
We don't have mkstemps, so just call mktemp and open the result.
Closes https://github.com/facebook/hhvm/pull/6111

Reviewed By: @sgolemon

Differential Revision: D2375910
hphp/runtime/base/emulate-zend.cpp