Conversation
FreshRSS#2469 (comment) 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.
|
Previous discussions: |
Co-Authored-By: Frans de Jonge <[email protected]>
Require PHP 5.5+ FreshRSS#2495
|
Actually, moving to PHP 5.6+ would not be much harder than 5.5+ based on the statistics and versions available in the distributions (which have either a version <= 5.4 or >= 5.6). |
|
No real objections here. Anything specific though? A few of those sound somewhat interesting (e.g., variadic functions) but at the same time a minor syntactic convenience isn't much of a reason. |
|
Ok. So let's stick to 5.5 now with a note that if we need 5.6 for anything, we can update without delay. |
|
I'm ok with this decision too 👍 I don't know how relevant the stats from w3techs.com are for our users, it may be interesting to do a survey to ask users where and how they host their instance of FreshRSS. Or even to add an option in FRSS (disabled by default) to send anonymous information automatically (but it's more work and I don't have time to work on this for the moment) |
FreshRSS#2495 (comment) https://php.net/ref.opcache We need to retest the performances FreshRSS#2205
#2495 (comment) https://php.net/ref.opcache We need to retest the performances #2205
Require PHP 5.5+ FreshRSS#2495
Require PHP 5.5+ FreshRSS#2495
Require PHP 5.5+ FreshRSS#2495
* CLI to export/import any database to/from SQLite Require PHP 5.5+ #2495 * Travis * Execution rights * Fix wrong static fields * Fix MySQL bad default buffering https://stackoverflow.com/questions/6895098/pdo-mysql-memory-consumption-with-large-result-set/6935271#6935271 https://php.net/manual/ref.pdo-mysql * Fix count on progression * Avoid static DB information To ease working with two DBs at the same time * Less static, simplify Needs some testing * Small corrections * Special case for SQLite to SQLite * Modify special case for SQLite * Remove special case for SQLite More uniform logic for the 3 databases. Fix wrong DROP TABLE for SQLite. * Drop indexes * Revert "Drop indexes" This reverts commit f28d2ba. * Fix deletion * Fix classic export * Update cli/README.md Co-Authored-By: Marien Fressinaud <[email protected]> * Addressing part of review * Remove goto 😢 * Travis * Comment for SQLite case * Fix missing fields when inserting
|
Actually, I am refactoring a bit our PDO code (#2522 ) and I do have a wish to move to PHP 5.6+ to be able to use constant arrays Instead of the current FreshRSS/app/Models/UserDAO.php Lines 21 to 22 in 8dcdde6 FreshRSS/app/SQL/install.sql.pgsql.php Lines 4 to 9 in c76a318 What do you think? Is it worth it? |
|
It's a real feature, so I don't see why not. 👍 |
|
It would be a nice simplification :) and #2495 (comment) was already a sufficient reason to move on |
|
CentOS 8 will be released next week with PHP 7.2 https://wiki.centos.org/About/Building_8 |
Discussion FreshRSS#2495 (comment) Needed for constant arrays https://www.php.net/manual/en/migration56.new-features.php which will be used in FreshRSS#2522
Needed for `CREATE INDEX IF NOT EXISTS` syntax. Supported as back as Ubuntu 16.04 LTS. Similar version checks than for the PHP version bump FreshRSS#2495 https://www.postgresql.org/docs/9.5/sql-createindex.html https://www.postgresql.org/docs/9.5/release-9-5.html
Needed for `CREATE INDEX IF NOT EXISTS` syntax. Supported as back as Ubuntu 16.04 LTS. Similar version checks than for the PHP version bump #2495 https://www.postgresql.org/docs/9.5/sql-createindex.html https://www.postgresql.org/docs/9.5/release-9-5.html
https://php.net/migration54.new-features thanks to FreshRSS#2495 Use `<?= ?>` instead of `<?php echo; ?>` 10kB of code saved :-) Done with regular expression: ``` <\?php echo (.+?);? *\?> <?= \1 ?> ```
* Take advantage of PHP 5.4+ short echo https://php.net/migration54.new-features thanks to #2495 Use `<?= ?>` instead of `<?php echo; ?>` 10kB of code saved :-) Done with regular expression: ``` <\?php echo (.+?);? *\?> <?= \1 ?> ``` * Try Travis fix squizlabs/PHP_CodeSniffer#2045 (comment)
#2469 (comment)
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:
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.