Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump minimum to PHP 7.3 (as the rest is EOL) #1982

Open
wants to merge 32 commits into
base: master
from

Conversation

@the-djmaze
Copy link
Contributor

the-djmaze commented Mar 16, 2020

The changes in this branch converted all function calls in MailSo and RainLoop libraries to be PHP 7.3+ with type hinting.
Due to the massive changes i couldn't test all conversions yet (so it might be still broken and i'm fixing it).
I've also merged the latest changes since 1.4.0 (but password_hash is different due to PHP 7.3+).

It might work in PHP 7.2 (but that is in extended support 30 Nov 2020)

Most conversion is done by using the doc comments @param and @return and the param $b*, $s*, $i* but these seem to be broken while testing.
Like: "$s*" are bool or "@param string" are "@param string|null"
That's why it takes longer and i didn't create pull requests for documentation errors.

The current marked conflicts are only CRLF vs LF (my files don't use CRLF)

@FlorianLaunay
Copy link

FlorianLaunay commented Mar 26, 2020

Hi @RainLoop . Do you plan to check this PR ? It will certainly resolve #1979 on PHP 7.4. Thank you @the-djmaze !

@the-djmaze
Copy link
Contributor Author

the-djmaze commented Apr 3, 2020

Hi @RainLoop . Do you plan to check this PR ? It will certainly resolve #1979 on PHP 7.4. Thank you @the-djmaze !

Actually those are already solved a250d84

And this one when you use contacts 2bb947d

I also have more changes prepared (like: class \MailSo\Base\Collection extends \ArrayObject) which gives better memory management and speed.
But when these pulls are not approved i will keep them in my fork

@phsc84
Copy link

phsc84 commented Jul 7, 2020

@the-djmaze Do you also provide a ZIP-package of your fork?
@RainLoop Would be great to merge this PR into the official repo!

@the-djmaze
Copy link
Contributor Author

the-djmaze commented Jul 10, 2020

@the-djmaze Do you also provide a ZIP-package of your fork?
@RainLoop Would be great to merge this PR into the official repo!

Not at the moment.
Just pull the source of the php73 branch and upload the content of rainloop/v/0.0.0/ into your existing v1.4.0 to test it.

@phsc84
Copy link

phsc84 commented Jul 11, 2020

I have just tried, what you told me. Unfortunately I get the a blank page. The browser log (F12) shows the folllowing error:
www.abc.com/:1 GET https://www.abc.com/apps/mail/rainloop/v/1.14.0/static/js/min/polyfills.min.js?community net::ERR_ABORTED 404

djmaze added 2 commits Jul 13, 2020
# Conflicts:
#	rainloop/v/0.0.0/app/libraries/MailSo/Base/Crypt.php
#	rainloop/v/0.0.0/app/libraries/MailSo/Base/Utils.php
#	rainloop/v/0.0.0/app/libraries/MailSo/Mail/MailClient.php
#	rainloop/v/0.0.0/app/libraries/MailSo/Mime/Email.php
#	rainloop/v/0.0.0/app/libraries/MailSo/Mime/EmailDep.php
#	rainloop/v/0.0.0/app/libraries/MailSo/Sieve/ManageSieveClient.php
#	rainloop/v/0.0.0/app/libraries/RainLoop/Config/Application.php
#	rainloop/v/0.0.0/app/libraries/RainLoop/Service.php
#	rainloop/v/0.0.0/app/libraries/RainLoop/ServiceActions.php
#	rainloop/v/0.0.0/include.php
@the-djmaze
Copy link
Contributor Author

the-djmaze commented Jul 15, 2020

I have just tried, what you told me. Unfortunately I get the a blank page. The browser log (F12) shows the folllowing error:
www.abc.com/:1 GET https://www.abc.com/apps/mail/rainloop/v/1.14.0/static/js/min/polyfills.min.js?community net::ERR_ABORTED 404

You are correct!
Because there is no /rainloop/v/1.14.0/static/ you should use that from the original zip.
Else run npm install and gulp on my source.
And don't use my master branch, because that has stripped functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.