mailinabox icon indicating copy to clipboard operation
mailinabox copied to clipboard

Another php8.1 upgrade

Open matidau opened this issue 1 year ago • 4 comments

This is my take on upgrading to PHP 8.1 with the feedback from @kiekerjan's PR #2309.

Would probably like to move the PHP Version from the if on line 94 in nextcloud.sh and make it an additional mandatory argument for the InstallNextcloud() function. But to keep this PR simple initially I have foregone that.

  • this has explicit PHP version as requested in https://github.com/mail-in-a-box/mailinabox/pull/2309#issuecomment-1745650977 and https://github.com/mail-in-a-box/mailinabox/pull/2309#issuecomment-1769586360
  • have not made use of docker #2319
  • not modifying the nextcloud package https://github.com/mail-in-a-box/mailinabox/pull/2309#issuecomment-1782382428

I have tested this with upgrading from a v57a backup (nextcloud 20.0.14) successfully.

matidau avatar Aug 05 '24 09:08 matidau

Just double-checking, there are no backward incompatible changes between v8.0 and v8.1 in our repo? https://www.php.net/manual/en/migration81.incompatible.php

binarykitchen avatar Aug 10 '24 05:08 binarykitchen

+1 from me

binarykitchen avatar Aug 10 '24 05:08 binarykitchen

Just double-checking, there are no backward incompatible changes between v8.0 and v8.1 in our repo? https://www.php.net/manual/en/migration81.incompatible.php

These are covered in the individual packages.

Roundcube 1.6 introduced PHP 8.1 and is backwards compatible with 8.0.

Z-Push 2.7.1 Fixed the only PHP 8.1 specific issue that has been come across. There is still PHP 8.0 errors coming up and being fixed though. 2.7.4 has some more of these. Z-Push will be aiming to maintain PHP 7.4 to latest PHP.

I don't think there are any problems with moving to 8.1.

matidau avatar Aug 10 '24 06:08 matidau

Great, thanks. Will leave it to @JoshData to review + merge, then I will do the next part, the NC upgrade.

binarykitchen avatar Aug 10 '24 06:08 binarykitchen

@JoshData Since there was a new release, I wonder why this isn't merged yet?

binarykitchen avatar Jan 05 '25 21:01 binarykitchen

My guess is that I haven't nailed it and it will take alot of Josh's time to review and provide guidance.

Probably more than him doing the work himself.

I wasn't going to chase him up, and give him the space to get to it when he can.

matidau avatar Jan 05 '25 23:01 matidau

@matidau Fair enough, but it's been one month, MiaB has 14k followers and when it comes to security + emails, we shouldn't be using deprecated libraries. Give him a little nudge, please.

binarykitchen avatar Feb 07 '25 08:02 binarykitchen

@binarykitchen If you feel strongly about it the best path would be to fork it yourself.

I won't be chasing Josh up, I value his time to work on what he deems important. 😊

matidau avatar Feb 07 '25 09:02 matidau

@matidau Well, thanks, but no, thanks, forking isn't a proper solution either. Starting from zero isn't a good idea. I prefer to collaborate, to work together as a team.

binarykitchen avatar Feb 07 '25 09:02 binarykitchen

Closing this PR, @kiekerjan 's #2309 is actively being reviewed

matidau avatar Mar 01 '25 20:03 matidau