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

Closed
wants to merge 34 commits into from

Conversation

the-djmaze
Copy link
Contributor

@the-djmaze 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

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 July 13, 2020 10:54
# 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.

@rex2630
Copy link

rex2630 commented Jan 9, 2021

Idk why, but when i tried it, it didnt worked on PHP 8. Can u make a release or something? Because for me it stucked on blank screen...

@phsc84
Copy link

phsc84 commented Jan 9, 2021

Try Snappymail 2.1.1, a heavily updated fork of Rainloop. Snappymail is faster, lighter and much more futureproof (e.g. compatible with newer PHP versions).
https://github.com/the-djmaze/snappymail/releases

@rex2630
Copy link

rex2630 commented Jan 9, 2021

Most of the significiant functions that i really need are missing in there, so there is no chance of even trying.

@the-djmaze
Copy link
Contributor Author

Idk why, but when i tried it, it didnt worked on PHP 8. Can u make a release or something? Because for me it stucked on blank screen...

Blank screen means you can find the error in the php log.
I don't create releases, that's up to the RainLoop Team (or someone else).

Since the development of RainLoop is slow, i've moved on with SnappyMail.
I wonder which significant functions you are missing...

@rex2630
Copy link

rex2630 commented Jan 11, 2021

For example login via google, thats thing i cant be without

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

Successfully merging this pull request may close these issues.

None yet

4 participants