Skip to content

PHP 7.4 EoL #1874

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

Open
haderlump22 opened this issue Oct 9, 2022 · 16 comments
Open

PHP 7.4 EoL #1874

haderlump22 opened this issue Oct 9, 2022 · 16 comments

Comments

@haderlump22
Copy link

sysPass Version
3.2.11

Describe the question
what is the plan for the expiring php version 7.4

Screenshots

Platform (please complete the following information):

  • OS: in this case, not important
  • OS Version: in this case, not important
  • Browser: in this case, not important

Additional context
No

@EchedelleLR
Copy link

Related: #1849

@ktoczyski
Copy link

ktoczyski commented Jan 10, 2023

Hi,

Is there any plans to support PHP 8+ in the near future? I use FreeBSD and now PHP is only available 8.0, 8.1 (default) and 8.2, other version was dropped.

Now I can't use sysPass because I received this info:

"Required PHP version >= 7.3 <= 7.4"

@vmario89
Copy link
Contributor

getting the same problem in the future. i guess we simply could modify some configs to allow higher php version. but for a secure system it should be checked against all changed to ensure everything is still working correctly. sadly i am not a PHP dev :-(

@vmario89
Copy link
Contributor

at least its not just a simple modification. We get more serious errors when chaning to php8.X like
mod_fcgid: stderr: PHP Parse error: syntax error, unexpected token "match" in /var/www/vhosts/<redacted>/vendor/phpunit/phpunit-mock-objects/src/Builder/ParametersMatch.php on line 17, referer: https://<redacted>/

@nbit-ag
Copy link

nbit-ag commented Mar 17, 2023

same... we are trying to go to php version 8.2 but unfortunately without success... we get quite a lot of dependency errors.... :/

@Arash9703
Copy link

Same here , it doesn't work when the version of php is over 7.4 !
I hope this change is in future planning of syspass.

@Xiokar
Copy link

Xiokar commented Feb 11, 2024

If you want to use sysPass with PHP 8.x then follow those steps :

  1. remove composer.lock and vendor directory
  2. edit composer.json by replacing version of phpunit/phpunit by "^9.3" AND the package "phpunit/dbunit": "^3" by "misantron/dbunit": "^5"
    image
  3. save your composer.json
  4. launch "composer install"
  5. edit file lib/SP/Util/Checks.php (line 52) to change the max PHP version 7.4 to 9.0
    image
  6. save your file
  7. Done, syspass is now fully working on PHP 8.x

@ktoczyski
Copy link

If you want to use sysPass with PHP 8.x then follow those steps :

  1. remove composer.lock and vendor directory
  2. edit composer.json by replacing version of phpunit/phpunit by "^9.3" AND the package "phpunit/dbunit": "^3" by "misantron/dbunit": "^5"

Hi,

I changed this in my composer file but I received this errors:

  Problem 1
    - Root composer.json requires php ~7.3 || ~7.4 but your php version (8.1.20) does not satisfy that requirement.
  Problem 2
    - Root composer.json requires doctrine/common ~v2.7.3 -> satisfiable by doctrine/common[v2.7.3].
    - doctrine/common v2.7.3 requires php ~5.6|~7.0 -> your php version (8.1.20) does not satisfy that requirement.
  Problem 3
    - fzaninotto/faker[v1.8.0, ..., v1.9.2] require php ^5.3.3 || ^7.0 -> your php version (8.1.20) does not satisfy that requirement.
    - Root composer.json requires fzaninotto/faker ^v1.8 -> satisfiable by fzaninotto/faker[v1.8.0, v1.9.0, v1.9.1, v1.9.2].

Your composer.json file is from SysPass repo?

@eduardomozart
Copy link

Thank you @Xiokar, I was able to follow your steps and make sysPass work on PHP 8.2.
@ktoczyski I only followed @Xiokar steps and added plugin-Authenticator to it. You'll still need to apply the patches sysPass/plugin-Authenticator#36 and sysPass/plugin-Authenticator#48 to make the Authenticator plugin works as expected.
sysPass-3.2.11+vendor+plugin-Authenticator-2.2.2+PHP8.zip

@Xiokar
Copy link

Xiokar commented Feb 28, 2024

@ktoczyski

Your composer.json file is from SysPass repo?

Yes, I had tested it 3 times on fresh installations of syspass before publishing here.
Did you followed the entire step ? Removing .lock file + vendor directory before other steps.

@eduardomozart
You're welcome

@vmario89
Copy link
Contributor

vmario89 commented Apr 1, 2024

i can confirm that the solution from @Xiokar is working properly. Thank you for investigating.

i think it still will make sense to find a new sucessor as sysPass project is dead now for largely over 2 years. There is also no known active fork and nobody with PHP skills adopted or continued that work :/

@nuxsmin
Copy link
Owner

nuxsmin commented Apr 1, 2024 via email

@4170R
Copy link

4170R commented Jan 31, 2025

Are there any updates on this? Is there a planned publication date?

@patrice-go-dsi
Copy link

you are the one @Xiokar !

@zezar98
Copy link

zezar98 commented Apr 21, 2025

Thanks a lot @Xiokar , you are the man!!!

With you directions I was able to install syspass with php 8.2

@Xiokar
Copy link

Xiokar commented Apr 21, 2025

Excellent, I'm glad to hear that this procedure is helping you all!

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

No branches or pull requests