Skip to content

Commit

Permalink
Try to resolve issue #1700 (#1701)
Browse files Browse the repository at this point in the history
  • Loading branch information
peter279k committed Jun 21, 2022
1 parent ce96043 commit dbc0b43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Process/OriginalPhpProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ private static function shallExtendEnvironmentWithXdebugMode(): bool
}

// The last case: Xdebug 3+ running inactive.
return ini_get_unsafe('xdebug.mode') === '';
return ini_get_unsafe('xdebug.mode') !== 'coverage';

// Why going through all the trouble above? We don't want to enable
// Xdebug when there are more compelling choices. In the end the user is
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/Process/OriginalPhpProcessTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function test_it_injects_xdebug_env_vars(): void
PHP_SAPI !== 'phpdbg' &&
(
ini_get_unsafe('xdebug.mode') === false ||
ini_get_unsafe('xdebug.mode') === ''
ini_get_unsafe('xdebug.mode') !== 'coverage'
)
) {
$this->assertStringContainsString('XDEBUG_MODE=coverage', $process->getOutput());
Expand Down

0 comments on commit dbc0b43

Please sign in to comment.