--TEST-- Test for bug #334: Code Coverage Regressions (!opcache) --SKIPIF-- <?php require __DIR__ . '/../utils.inc'; check_reqs('!opcache'); ?> --INI-- xdebug.mode=coverage xdebug.dump_globals=0 xdebug.trace_format=0 --FILE-- <?php // Run me from the PHP CLI xdebug_start_code_coverage(XDEBUG_CC_DEAD_CODE | XDEBUG_CC_UNUSED); // MUST be both code coverage options to cause problems include(dirname(__FILE__).'/bug00334.inc'); // File with problem in it. $c = xdebug_get_code_coverage(); ksort($c); var_dump($c); xdebug_stop_code_coverage(); ?> --EXPECTF-- array(2) { ["%sbug00334-noopcache.php"]=> array(2) { [5]=> int(1) [6]=> int(1) } ["%sbug00334.inc"]=> array(3) { [5]=> int(1) [7]=> int(-1) [9]=> int(1) } }