diff options
Diffstat (limited to 'nextcloud-10.0.3-dont-check-php-version.patch')
-rw-r--r-- | nextcloud-10.0.3-dont-check-php-version.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/nextcloud-10.0.3-dont-check-php-version.patch b/nextcloud-10.0.3-dont-check-php-version.patch index a0dbb17..77bd1ef 100644 --- a/nextcloud-10.0.3-dont-check-php-version.patch +++ b/nextcloud-10.0.3-dont-check-php-version.patch @@ -25,6 +25,31 @@ index b2724db..149c265 100644 function exceptionHandler($exception) { echo "An unhandled exception has been thrown:" . PHP_EOL; echo $exception; +diff --git a/cron.php b/cron.php +index 4473dba..7a4e1a6 100644 +--- a/cron.php ++++ b/cron.php +@@ -30,20 +30,6 @@ + * + */ + +-// Show warning if a PHP version below 5.4.0 is used +-if (version_compare(PHP_VERSION, '5.4.0') === -1) { +- echo 'This version of Nextcloud requires at least PHP 5.4.0<br/>'; +- echo 'You are currently running ' . PHP_VERSION . '. Please update your PHP version.'; +- return; +-} +- +-// Show warning if PHP 7.1 is used as Nextcloud is not compatible with PHP 7.1 for now +-// @see https://github.com/nextcloud/docker-ci/issues/10 +-if (version_compare(PHP_VERSION, '7.1.0') !== -1) { +- echo 'This version of Nextcloud is not compatible with PHP 7.1.<br/>'; +- echo 'You are currently running ' . PHP_VERSION . '.'; +- return; +-} + + try { + diff --git a/index.php b/index.php index e72d38c..29920d7 100644 --- a/index.php |