forked from openemr/openemr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make php version checker more robust (openemr#2303)
- Loading branch information
1 parent
7f78134
commit 5a1188d
Showing
7 changed files
with
23 additions
and
35 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
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 |
---|---|---|
|
@@ -13,6 +13,14 @@ | |
* @copyright Copyright (c) 2019 Ranganath Pathak <[email protected]> | ||
* @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3 | ||
*/ | ||
|
||
// Checks if the server's PHP version is compatible with OpenEMR: | ||
require_once(dirname(__FILE__) . "/common/compatibility/Checker.php"); | ||
$response = OpenEMR\Common\Checker::checkPhpVersion(); | ||
if ($response !== true) { | ||
die(htmlspecialchars($response)); | ||
} | ||
|
||
// Set the maximum excution time and time limit to unlimited. | ||
ini_set('max_execution_time', 0); | ||
ini_set('display_errors', 0); | ||
|
@@ -86,13 +94,6 @@ function recursive_writable_directory_test($dir) | |
// Bring in standard libraries/classes | ||
require_once dirname(__FILE__) ."/vendor/autoload.php"; | ||
|
||
use OpenEMR\Common\Checker; | ||
|
||
$response = Checker::checkPhpVersion(); | ||
if ($response !== true) { | ||
die($response); | ||
} | ||
|
||
$COMMAND_LINE = php_sapi_name() == 'cli'; | ||
require_once(dirname(__FILE__) . '/library/authentication/password_hashing.php'); | ||
require_once dirname(__FILE__) . '/library/classes/Installer.class.php'; | ||
|
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