Skip to content

Commit ab62213

Browse files
Revert "Make --version work even when we are on an unsupported version of PHP"
This reverts commit d548f90.
1 parent 53e0082 commit ab62213

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build/binary-phar-autoload.php.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ if (__FILE__ == realpath($GLOBALS['_SERVER']['SCRIPT_NAME'])) {
77
}
88

99
if ($execute) {
10-
if (version_compare('5.3.3', PHP_VERSION, '>') && $argv[1] !== '--version') {
10+
if (version_compare('5.3.3', PHP_VERSION, '>')) {
1111
fwrite(
1212
STDERR,
1313
sprintf(

phpunit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
if (version_compare('5.3.3', PHP_VERSION, '>') && $argv[1] !== '--version') {
12+
if (version_compare('5.3.3', PHP_VERSION, '>')) {
1313
fwrite(
1414
STDERR,
1515
sprintf(

0 commit comments

Comments
 (0)