aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/docs/fr/developers/01_First_steps.md
diff options
context:
space:
mode:
authorAlexandre Alapetite <alexandre@alapetite.fr>2019-08-20 14:55:43 +0200
committerGitHub <noreply@github.com>2019-08-20 14:55:43 +0200
commitfd33d92d413acb5ee48e04d8a78f251e35ef06c5 (patch)
tree494f54d132e9b305ec91f5c8736b633bdedfb298 /docs/fr/developers/01_First_steps.md
parent38a4b22f7bb2eb51c5224d2a340e199d6a280797 (diff)
downloadfreshrss-fd33d92d413acb5ee48e04d8a78f251e35ef06c5.tar.gz
freshrss-fd33d92d413acb5ee48e04d8a78f251e35ef06c5.zip
Require PHP 5.5+ (#2495)
* Require PHP 5.5+ https://github.com/FreshRSS/FreshRSS/issues/2469#issuecomment-522255093 I think it would be reasonable to require PHP 5.5+ for the core of FreshRSS after all. As Frenzie said, WordPress currently requires PHP 5.6.20+, and it is the most popular PHP application. We would loose about 20% of the PHP servers according to https://w3techs.com/technologies/details/pl-php/5/all but I expect this number to drop fast after the release of CentOS 8 (CentOS accounts for 17% of Linux servers https://w3techs.com/technologies/details/os-linux/all/all ). Distributions: * no impact on Ubuntu, Fedora, Alpine, OpenWRT, FreeBSD, OpenSuze, Mageia, as all active versions have PHP > 7 * no impact on OpenSuze, Synology, as all active versions have PHP > 5.5 * we drop Debian 8 Jessie (-2020) - we keep supporting Debian 9 Stretch (2017-06) - current is Debian 10 Buster * we drop Red Hat 7 (-2024) - we keep supporting RHEL 8 (2019-05) * we drop CentOS 7 (-2024) - we will support CentOS 8 (to be released soonish) When dropping older versions, I can better like when it is for a good reason, and there is actually one with PHP 5.5, namely generators (yield) https://php.net/language.generators.overview which I consider using. * Version note for JSON.php * hex2bin * Update .travis.yml Co-Authored-By: Frans de Jonge <fransdejonge@gmail.com>
Diffstat (limited to 'docs/fr/developers/01_First_steps.md')
-rw-r--r--docs/fr/developers/01_First_steps.md21
1 files changed, 2 insertions, 19 deletions
diff --git a/docs/fr/developers/01_First_steps.md b/docs/fr/developers/01_First_steps.md
index d2bf9d315..dd38bcb3f 100644
--- a/docs/fr/developers/01_First_steps.md
+++ b/docs/fr/developers/01_First_steps.md
@@ -148,26 +148,9 @@ abstract class NomDeLaClasse {}
Les fichiers doivent être encodés en UTF-8.
-## Compatibilité avec PHP 5.3
+## Compatibilité PHP
-Il ne faut pas demander l'indice d'un tableau qui est retourné par une fonction ou une méthode. Il faut passer par une variable intermédiaire.
-
-```php
-// code compatible avec PHP 5.3
-$ma_variable = fonction_qui_retourne_un_tableau();
-echo $ma_variable[0];
-// code incompatible avec PHP 5.3
-echo fonction_qui_retourne_un_tableau()[0];
-```
-
-Il ne faut pas utiliser la déclaration raccourcie des tableaux.
-
-```php
-// code compatible avec PHP 5.3
-$variable = array();
-// code incompatible avec PHP 5.3
-$variable = [];
-```
+Assurez-vous que votre code fonctionne avec une version de PHP aussi ancienne que celle que FreshRSS supporte officiellement.
## Divers