Skip to content

Commit 903c2c0

Browse files
Merge branch '4.4' into 5.2
* 4.4: - PHPUnit on GitHub Actions
2 parents df663fb + ac8cd05 commit 903c2c0

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

Tests/VarExporterTest.php

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,13 @@ public function provideFailingSerialization()
6767

6868
yield [$a];
6969

70-
$a = [null, $h];
71-
$a[0] = &$a;
70+
// This test segfaults on the final PHP 7.2 release
71+
if (\PHP_VERSION_ID !== 70234) {
72+
$a = [null, $h];
73+
$a[0] = &$a;
7274

73-
yield [$a];
75+
yield [$a];
76+
}
7477
}
7578

7679
/**
@@ -163,10 +166,13 @@ public function provideExport()
163166

164167
yield ['hard-references', $value];
165168

166-
$value = [];
167-
$value[0] = &$value;
169+
// This test segfaults on the final PHP 7.2 release
170+
if (\PHP_VERSION_ID !== 70234) {
171+
$value = [];
172+
$value[0] = &$value;
168173

169-
yield ['hard-references-recursive', $value];
174+
yield ['hard-references-recursive', $value];
175+
}
170176

171177
static $value = [123];
172178

0 commit comments

Comments
 (0)