Disable code coverage for systemlib.hhas

It has no line number information.
Esse commit está contido em:
mwilliams
2013-07-02 07:27:37 -07:00
commit de Sara Golemon
commit db29a1127c
3 arquivos alterados com 19 adições e 1 exclusões
+2 -1
Ver Arquivo
@@ -7186,7 +7186,8 @@ void VMExecutionContext::recordCodeCoverage(PC pc) {
Unit* unit = getFP()->m_func->unit();
assert(unit != nullptr);
if (unit == SystemLib::s_nativeFuncUnit ||
unit == SystemLib::s_nativeClassUnit) {
unit == SystemLib::s_nativeClassUnit ||
unit == SystemLib::s_hhas_unit) {
return;
}
int line = unit->getLineNumber(pcOff());
@@ -0,0 +1,9 @@
<?php
function test($a) {
fb_enable_code_coverage();
var_dump(array_map(null, $a));
fb_disable_code_coverage();
}
test(array(1,2,3));
@@ -0,0 +1,8 @@
array(3) {
[0]=>
int(1)
[1]=>
int(2)
[2]=>
int(3)
}