Skip to content

Commit a8a61f8

Browse files
committed
Remove checks for PHP_VERSION_ID >= 70400
1 parent 813f73a commit a8a61f8

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

src/test/php/io/streams/compress/unittest/Bzip2InputStreamTest.class.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,6 @@ protected function compress(string $in, int $level): string { return bzcompress(
1515

1616
/** Erroneous data */
1717
protected function erroneous() {
18-
19-
// PHP 7.4RC1 is the first version to handle reading errors correctly, see
20-
// https://github.com/php/php-src/commit/d59aac58b3e7da7ad01a194fe9840d89725ea229
21-
if (PHP_VERSION_ID >= 70400) {
22-
yield ["BZh61AY&SY\331<Plain data>"];
23-
}
18+
yield ["BZh61AY&SY\331<Plain data>"];
2419
}
2520
}

src/test/php/io/streams/compress/unittest/CompressionTest.class.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,8 @@ private function erroneous() {
4242
yield [$gzip, "\037\213\b\000\000\000\000\000\000\n<Plain data>"];
4343
}
4444

45-
// PHP 7.4RC1 is the first version to handle reading errors correctly, see
46-
// https://github.com/php/php-src/commit/d59aac58b3e7da7ad01a194fe9840d89725ea229
4745
$bzip2= $algorithms->named('bzip2');
48-
if ($bzip2->supported() && PHP_VERSION_ID >= 70400) {
46+
if ($bzip2->supported()) {
4947
yield [$bzip2, "BZh61AY&SY\331<Plain data>"];
5048
}
5149
}

0 commit comments

Comments
 (0)