Fix refcounting in arReturn() and stop leaking static strings.
commit6c1a4661b5b5c37a7c78a8af99ee7ba8a4fa917d
authorEdwin Smith <smith@fb.com>
Sat, 6 Sep 2014 18:50:42 +0000 (6 11:50 -0700)
committerhhvm-bot <hhvm-bot@fb.com>
Sun, 7 Sep 2014 09:30:16 +0000 (7 02:30 -0700)
treeb90f08e90875d52540f60a52ea933ba8bdd068b6
parentbd8d9e10bfb85ab22e11317e5585c62912bcbf3b
Fix refcounting in arReturn() and stop leaking static strings.

Summary: Change arReturn() to take Variant&& and move the value
to the return slot in ActRec.

Reviewed By: @markw65

Differential Revision: D1541349
hphp/runtime/ext/std/ext_std_misc.cpp
hphp/runtime/ext/wddx/ext_wddx.cpp
hphp/runtime/vm/bytecode.h