Skip to content

Commit

Permalink
restrict xdebug workaround to affected versions
Browse files Browse the repository at this point in the history
  • Loading branch information
flack committed May 31, 2024
1 parent f8fa0ec commit 565006e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/api/mgdobjectTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ public function test_load_purged()
$this->assertInstanceOf('midgard_error_exception', $e);
$this->assertEquals(MGD_ERR_NOT_EXISTS, midgard_connection::get_instance()->get_error());

if (extension_loaded('xdebug') && PHP_VERSION_ID >= 80000) {
$this->markTestIncomplete('Workaround for https://bugs.xdebug.org/view.php?id=2100');
if (extension_loaded('xdebug') && version_compare(phpversion('xdebug'), '3.1.6', '<') && PHP_VERSION_ID >= 80000) {
$this->markTestIncomplete('Workaround for https://bugs.xdebug.org/view.php?id=2100');
}

$e = null;
Expand Down

0 comments on commit 565006e

Please sign in to comment.