- 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
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"
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:
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
"issues": "https://github.com/friendica/friendica/issues"
},
"require": {
- "php": ">=7.3",
+ "php": ">=7.4",
"ext-ctype": "*",
"ext-curl": "*",
"ext-dom": "*",
"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",
"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,
### 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)
---
* 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)
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);