Skip to content

Commit 2b0a4bb

Browse files
1 parent 35ba7a5 commit 2b0a4bb

3 files changed

Lines changed: 37 additions & 0 deletions

File tree

ChangeLog-8.5.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
All notable changes of the PHPUnit 8.5 release series are documented in this file using the [Keep a CHANGELOG](https://keepachangelog.com/) principles.
44

5+
## [8.5.17] - 2021-MM-DD
6+
7+
### Changed
8+
9+
* PHPUnit now errors out on startup when `PHP_VERSION` ends with `-(to be removed in future macOS)`
10+
511
## [8.5.16] - 2021-06-05
612

713
### Changed
@@ -143,6 +149,7 @@ All notable changes of the PHPUnit 8.5 release series are documented in this fil
143149
* [#3967](https://github.com/sebastianbergmann/phpunit/issues/3967): Cannot double interface that extends interface that extends `\Throwable`
144150
* [#3968](https://github.com/sebastianbergmann/phpunit/pull/3968): Test class run in a separate PHP process are passing when `exit` called inside
145151

152+
[8.5.17]: https://github.com/sebastianbergmann/phpunit/compare/8.5.16...8.5
146153
[8.5.16]: https://github.com/sebastianbergmann/phpunit/compare/8.5.15...8.5.16
147154
[8.5.15]: https://github.com/sebastianbergmann/phpunit/compare/8.5.14...8.5.15
148155
[8.5.14]: https://github.com/sebastianbergmann/phpunit/compare/8.5.13...8.5.14

build/templates/binary-phar-autoload.php.in

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
#!/usr/bin/env php
22
<?php
3+
if (substr(PHP_VERSION, 0 - strlen('-(to be removed in future macOS)')) === '-(to be removed in future macOS)') {
4+
fwrite(
5+
STDERR,
6+
sprintf(
7+
'%s declares an invalid value for PHP_VERSION.' . PHP_EOL .
8+
'This breaks fundamental functionality such as version_compare().' . PHP_EOL .
9+
'Please use a different PHP interpreter.' . PHP_EOL,
10+
11+
PHP_BINARY
12+
)
13+
);
14+
15+
die(1);
16+
}
17+
318
if (version_compare('7.2.0', PHP_VERSION, '>')) {
419
fwrite(
520
STDERR,

phpunit

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,21 @@
99
* file that was distributed with this source code.
1010
*/
1111

12+
if (substr(PHP_VERSION, 0 - strlen('-(to be removed in future macOS)')) === '-(to be removed in future macOS)') {
13+
fwrite(
14+
STDERR,
15+
sprintf(
16+
'%s declares an invalid value for PHP_VERSION.' . PHP_EOL .
17+
'This breaks fundamental functionality such as version_compare().' . PHP_EOL .
18+
'Please use a different PHP interpreter.' . PHP_EOL,
19+
20+
PHP_BINARY
21+
)
22+
);
23+
24+
die(1);
25+
}
26+
1227
if (version_compare('7.2.0', PHP_VERSION, '>')) {
1328
fwrite(
1429
STDERR,

0 commit comments

Comments
 (0)