File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2929 *
3030 */
3131
32+ require_once __DIR__ . '/lib/versioncheck.php ' ;
33+
3234use OC \Console \Application ;
3335use Symfony \Component \Console \Input \ArgvInput ;
3436use Symfony \Component \Console \Output \ConsoleOutput ;
3537
3638define ('OC_CONSOLE ' , 1 );
3739
38- // Show warning if a PHP version below 5.6.0 is used, this has to happen here
39- // because base.php will already use 5.6 syntax.
40- if (version_compare (PHP_VERSION , '5.6.0 ' ) === -1 ) {
41- echo 'This version of Nextcloud requires at least PHP 5.6.0 ' .PHP_EOL ;
42- echo 'You are currently running ' . PHP_VERSION . '. Please update your PHP version. ' .PHP_EOL ;
43- return ;
44- }
45-
4640function exceptionHandler ($ exception ) {
4741 echo "An unhandled exception has been thrown: " . PHP_EOL ;
4842 echo $ exception ;
Original file line number Diff line number Diff line change 3434 *
3535 */
3636
37- // Show warning if a PHP version below 5.6.0 is used
38- if (version_compare (PHP_VERSION , '5.6.0 ' ) === -1 ) {
39- echo 'This version of Nextcloud requires at least PHP 5.6.0<br/> ' ;
40- echo 'You are currently running ' . PHP_VERSION . '. Please update your PHP version. ' ;
41- return ;
42- }
37+ require_once __DIR__ . '/lib/versioncheck.php ' ;
4338
4439try {
4540
Original file line number Diff line number Diff line change 2828 *
2929 */
3030
31- // Show warning if a PHP version below 5.6.0 is used, this has to happen here
32- // because base.php will already use 5.6 syntax.
33- if (version_compare (PHP_VERSION , '5.6.0 ' ) === -1 ) {
34- echo 'This version of Nextcloud requires at least PHP 5.6.0<br/> ' ;
35- echo 'You are currently running ' . PHP_VERSION . '. Please update your PHP version. ' ;
36- return ;
37- }
31+ require_once __DIR__ . '/lib/versioncheck.php ' ;
3832
3933try {
4034
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ // Show warning if a PHP version below 5.6.0 is used, this has to happen here
4+ // because base.php will already use 5.6 syntax.
5+ if (version_compare (PHP_VERSION , '5.6.0 ' ) === -1 ) {
6+ http_response_code (500 );
7+ echo 'This version of Nextcloud requires at least PHP 5.6.0<br/> ' ;
8+ echo 'You are currently running ' . PHP_VERSION . '. Please update your PHP version. ' ;
9+ exit (-1 );
10+ }
11+
12+ // Show warning if > PHP 7.2 is used as Nextcloud is not compatible with > PHP 7.2 for now
13+ if (version_compare (PHP_VERSION , '7.3.0 ' ) !== -1 ) {
14+ http_response_code (500 );
15+ echo 'This version of Nextcloud is not compatible with > PHP 7.2.<br/> ' ;
16+ echo 'You are currently running ' . PHP_VERSION . '. ' ;
17+ exit (-1 );
18+ }
Original file line number Diff line number Diff line change 2323 *
2424 */
2525
26+ require_once __DIR__ . '/../lib/versioncheck.php ' ;
2627require_once __DIR__ . '/../lib/base.php ' ;
2728
2829header ('Content-type: application/xml ' );
Original file line number Diff line number Diff line change 2929 *
3030 */
3131
32+ require_once __DIR__ . '/../lib/versioncheck.php ' ;
3233require_once __DIR__ . '/../lib/base.php ' ;
3334
3435if (\OCP \Util::needUpgrade ()
Original file line number Diff line number Diff line change 2727 * along with this program. If not, see <http://www.gnu.org/licenses/>
2828 *
2929 */
30+
31+ require_once __DIR__ . '/lib/versioncheck.php ' ;
32+
3033try {
3134
3235 require_once __DIR__ . '/lib/base.php ' ;
Original file line number Diff line number Diff line change 2828 *
2929 */
3030
31+ require_once __DIR__ . '/lib/versioncheck.php ' ;
32+
3133use OCA \DAV \Connector \Sabre \ExceptionLoggerPlugin ;
3234use Sabre \DAV \Exception \ServiceUnavailable ;
3335use Sabre \DAV \Server ;
Original file line number Diff line number Diff line change 2929 *
3030 */
3131
32+ require_once __DIR__ . '/lib/versioncheck.php ' ;
33+
3234try {
3335
3436 require_once __DIR__ . '/lib/base.php ' ;
You can’t perform that action at this time.
0 commit comments