fb_enable_code_coverage needs an ActRec

It tries to unwind the top, builtin frame, making
various assumptions that aren't true if it was called by
FCallBuiltin. In dbg builds, it asserts.
Esse commit está contido em:
mwilliams
2013-07-02 07:07:42 -07:00
commit de Sara Golemon
commit 74ca5cd27f
3 arquivos alterados com 12 adições e 1 exclusões
+2 -1
Ver Arquivo
@@ -584,7 +584,8 @@
"desc": "Enables code coverage. The coverage information is cleared.",
"flags": [
"HasDocComment",
"HipHopSpecific"
"HipHopSpecific",
"NeedsActRec"
],
"return": {
"type": null
@@ -0,0 +1,9 @@
<?php
function test($t) {
fb_enable_code_coverage();
var_dump($t);
fb_disable_code_coverage();
}
test("hello");
@@ -0,0 +1 @@
string(5) "hello"