mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-21 03:15:45 -08:00
Merge pull request #10349 from snipe/chore/sc-17719/add-sodium-as-a-requirement-in-upgrade-php
Update upgrade.php with newer requires
This commit is contained in:
commit
ef8f646ab2
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
(PHP_SAPI !== 'cli' || isset($_SERVER['HTTP_USER_AGENT'])) && die('Access denied.');
|
(PHP_SAPI !== 'cli' || isset($_SERVER['HTTP_USER_AGENT'])) && die('Access denied.');
|
||||||
|
|
||||||
$required_version = '7.2.5';
|
$required_version = '7.4.0';
|
||||||
|
|
||||||
if ((strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') || (!function_exists('posix_getpwuid'))) {
|
if ((strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') || (!function_exists('posix_getpwuid'))) {
|
||||||
echo "Skipping user check as it is not supported on Windows or Posix is not installed on this server. \n";
|
echo "Skipping user check as it is not supported on Windows or Posix is not installed on this server. \n";
|
||||||
|
@ -64,6 +64,7 @@ $required_exts_array =
|
||||||
'mysqli|pgsql',
|
'mysqli|pgsql',
|
||||||
'openssl',
|
'openssl',
|
||||||
'PDO',
|
'PDO',
|
||||||
|
'sodium',
|
||||||
'tokenizer',
|
'tokenizer',
|
||||||
'xml',
|
'xml',
|
||||||
'zip',
|
'zip',
|
||||||
|
|
Loading…
Reference in a new issue