-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Revert "Add notice to output about deprecation of HHVM and PH…
…P < 5.6"" This reverts commit 36756b1.
- Loading branch information
Showing
3 changed files
with
37 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
if (defined('HHVM_VERSION')) { | ||
fwrite( | ||
STDERR, | ||
"It seems like you are using HHVM to run phpDox.\nHHVM is no longer a supported environment." . | ||
"Please consider using PHP 7.x.\n\n" | ||
); | ||
return; | ||
} | ||
|
||
if ((version_compare(phpversion(), '5.5', 'lt'))) { | ||
fwrite( | ||
STDERR, | ||
sprintf( | ||
"phpDox requires PHP 5.5 or later; " . | ||
"Upgrading to the latest version of PHP is highly recommended. (Version used: %s)\n\n", | ||
phpversion() | ||
) | ||
); | ||
|
||
die(1); | ||
} | ||
|
||
if ((version_compare(phpversion(), '7.0', 'lt'))) { | ||
fwrite( | ||
STDERR, | ||
sprintf( | ||
"You are using an outdated version of PHP (%s) to run phpDox. Please consider upgrading to PHP 7.x!\n\n", | ||
phpversion() | ||
) | ||
); | ||
} |