Skip to content

PHP 7.0+ for Nextcloud 14 #7368

Closed
Closed

Description

@MorrisJobke

I want to bring up the topic of raising the PHP version to 7.0. I collected a list of released PHP packages for the main distributions:

As you need to use RHSCL anyways on Red Hat to run Nextcloud 13 and before, it only make sense to also raise the required version for Nextcloud. The main reason behind this is proper type hinting of scalar types as well as strict typing. Just today there was another possible bug that would have been found by our CI if strict typing would be set: #7351 (comment)

Compare https://3v4l.org/dmBJK (without strict typing) to https://3v4l.org/msAEZ (with strict typing).

Opinions on this? I guess it is a good way to move forward with our quality goals.

cc @rullzer @LukasReschke @schiessle @karlitschek @blizzz @skjnldsv @juliushaertl @icewind1991 @ChristophWurst @daita @danxuliu

Activity

  1. added this to the Nextcloud 14 milestone on Dec 3, 2017
  2. splitt3r commented on Dec 3, 2017

    @splitt3r
    Contributor

    Even 7.0 has only 11 month left -> http://php.net/supported-versions.php

  3. karlitschek commented on Dec 3, 2017

    @karlitschek
    Member

    @splitt3r We have to check the supported situation in distribution. Which is usually different then from upstream.

  4. karlitschek commented on Dec 3, 2017

    @karlitschek
    Member

    O.K. Let's move to 7.0+ for 14

  5. LukasReschke commented on Dec 3, 2017

    @LukasReschke
    Member

    Oye! NOW the fun stuff starts? ;-)

  6. MorrisJobke commented on Dec 3, 2017

    @MorrisJobke
    MemberAuthor

    Even 7.0 has only 11 month left

    Our goal is to have a supported version on which Nextcloud runs on all major distributions. Because this is the place where Nextcloud runs and it would not make it easier to get Nextcloud running if you need to find 3rdparty packages or compile PHP yourself. (Not even thinking about security and upgrade problems afterwards with those setups).

  7. rullzer commented on Dec 3, 2017

    @rullzer
    Member

    Yes please. I think this can really harden our software!

    I'm fine with 7.0 for now. We can review for 15 what the state is then.

  8. tflidd commented on Dec 4, 2017

    @tflidd
    Contributor

    In NC13, could we put in a notification/warning on the admin page for users with PHP<7.0 that this is the last version supporting php 5.6 and that PHP 7.0+ is required for the next major release? This way they are noticed early enough to plan an upgrade.

  9. MorrisJobke commented on Dec 4, 2017

    @MorrisJobke
    MemberAuthor

    In NC13, could we put in a notification/warning on the admin page for users with PHP<7.0 that this is the last version supporting php 5.6 and that PHP 7.0+ is required for the next major release? This way they are noticed early enough to plan an upgrade.

    Could you make a ticket for this. You could also assign me there. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions