]> git.mxchange.org Git - friendica.git/commitdiff
Bump minimum version to run Friendica to PHP 7.4
authorHypolite Petovan <hypolite@mrpetovan.com>
Mon, 18 Dec 2023 21:01:50 +0000 (16:01 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Tue, 19 Dec 2023 02:02:02 +0000 (21:02 -0500)
- Update version filter of mobiledetect/mobiledetectlib and psr/container to PHP 7.4 versions
- Remove PHP 7.3 PHPUnit instance
- Remove PHP 7.2 specific PDO exception in tests

.ddev/config.yaml
.woodpecker/.phpunit.yml
composer.json
doc/Install.md
doc/de/Install.md
tests/functional/DependencyCheckTest.php

index afc9776564b06d7d8295cc2063ae9ffcdd05b613..26cba10525719657d30def5981d464d3d1139b3a 100644 (file)
@@ -1,7 +1,7 @@
 name: my-friendica
 type: php
 docroot: ""
-php_version: "7.3"
+php_version: "7.4"
 webserver_type: apache-fpm
 router_http_port: "80"
 router_https_port: "443"
@@ -17,7 +17,7 @@ use_dns_when_possible: true
 composer_version: "1"
 web_environment: []
 nodejs_version: "16"
-webimage_extra_packages: [php7.3-gmp]
+webimage_extra_packages: [php7.4-gmp]
 
 # Key features of ddev's config.yaml:
 
index 325a2d9c1c42f5c6be19c0cb5fba603d40f2ef3a..97ea09d3740af308ea22ef9e4bd24b863235ba9b 100644 (file)
@@ -1,7 +1,5 @@
 matrix:
   include:
-    - PHP_MAJOR_VERSION: 7.3
-      PHP_VERSION: 7.3.33
     - PHP_MAJOR_VERSION: 7.4
       PHP_VERSION: 7.4.33
     - PHP_MAJOR_VERSION: 8.0
index 9a86ebc2cce132eeab7553a4c3ea0aecf4da54fc..21603c7b2731bdb500f962dc611c2fd1bd6368cb 100644 (file)
@@ -13,7 +13,7 @@
                "issues": "https://github.com/friendica/friendica/issues"
        },
        "require": {
-               "php": ">=7.3",
+               "php": ">=7.4",
                "ext-ctype": "*",
                "ext-curl": "*",
                "ext-dom": "*",
@@ -44,7 +44,7 @@
                "mattwright/urlresolver": "^2.0",
                "michelf/php-markdown": "^1.7",
                "minishlink/web-push": "^6.0",
-               "mobiledetect/mobiledetectlib": "^2.8",
+               "mobiledetect/mobiledetectlib": "^3.74",
                "nikic/fast-route": "^1.3",
                "paragonie/hidden-string": "^1.0",
                "patrickschur/language-detection": "^5.0.0",
@@ -53,7 +53,7 @@
                "pragmarx/google2fa": "^5.0",
                "pragmarx/recovery": "^0.2",
                "psr/clock": "^1.0",
-               "psr/container": "^1.0",
+               "psr/container": "^2.0",
                "psr/log": "^1.1",
                "seld/cli-prompt": "^1.0",
                "smarty/smarty": "^4",
        },
        "config": {
                "platform": {
-                       "php": "7.3"
+                       "php": "7.4"
                },
                "autoloader-suffix": "Friendica",
                "optimize-autoloader": true,
index dc390fbc8ab243d61b7040400363c2f171c6b5b8..4715c27233ef1bfdc86b1d81617171d91b507442 100644 (file)
@@ -28,7 +28,7 @@ Due to the large variety of operating systems and PHP platforms in existence we
 ### Requirements
 
 * Apache with mod-rewrite enabled and "Options All" so you can use a local `.htaccess` file
-* PHP 7.3+
+* PHP 7.4+
   * PHP *command line* access with register_argc_argv set to true in the php.ini file
   * Curl, GD, GMP, PDO, mbstrings, MySQLi, hash, xml, zip, IntlChar and OpenSSL extensions
   * The POSIX module of PHP needs to be activated (e.g. [RHEL, CentOS](http://www.bigsoft.co.uk/blog/index.php/2014/12/08/posix-php-commands-not-working-under-centos-7) have disabled it)
index db99367af3c53dae7a14cf5ee99febcdcee4c0ba..0122988c59903d6ac5b479a54782660e5bf5850e 100644 (file)
@@ -25,7 +25,7 @@ Requirements
 ---
 
 * Apache mit einer aktiverten mod-rewrite-Funktion und dem Eintrag "Options All", so dass du die lokale .htaccess-Datei nutzen kannst
-* PHP  7.3+
+* PHP  7.4+
   * PHP *Kommandozeilen*-Zugang mit register_argc_argv auf "true" gesetzt in der php.ini-Datei
   * Curl, GD, GMP, PDO, mbstrings, MySQLi, hash, xml, zip, IntlChar and OpenSSL-Erweiterung
   * Das POSIX Modul muss aktiviert sein ([CentOS, RHEL](http://www.bigsoft.co.uk/blog/index.php/2014/12/08/posix-php-commands-not-working-under-centos-7http://www.bigsoft.co.uk/blog/index.php/2014/12/08/posix-php-commands-not-working-under-centos-7) haben dies z.B. deaktiviert)
index 4488fe5868df6f4b7823411506db4c125fa98917..5d0b63a6afca07705971bbc84dd73d1015e620e2 100644 (file)
@@ -80,12 +80,6 @@ class DependencyCheckTest extends FixtureTest
 
        public function testDatabase()
        {
-               // PDO needs to be disabled for PHP 7.2, see https://jira.mariadb.org/browse/MDEV-24121
-               if (version_compare(PHP_VERSION, '7.3') < 0) {
-                       $configCache = $this->dice->create(Cache::class);
-                       $configCache->set('database', 'disable_pdo', true);
-               }
-
                /** @var Database $database */
                $database = $this->dice->create(Database::class);