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

Fix compatibility with php8 #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

marcpaulchand
Copy link

Hello

I tried to setup it with php8.

I got this error message :

3831#3831: *1 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Array and string offset access syntax with curly braces is no longer supported in /usr/share/yubikey-ksm/ykksm-utils.php on line 36" while rea
ding response header from upstream, client: ::1, server: , request: "GET /wsapi/decrypt.php?otp=ccccccdvlncufehgjirkkgnfhrkrrhnrblebciiivjug HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm8/php-fpm.sock:", host: "localhost"

So i adjust line36 in order to get te correct answer with my wget.

Before

wget -q -O - 'http://localhost/wsapi/decrypt.php?otp=xxxxxxxxxxxxxehgjirkkgnfhrkrrhnrblebciiivjug'
ERR Database error

After change

wget -q -O - 'http://localhost/wsapi/decrypt.php?otp=xxxxxxxxxxxxxehgjirkkgnfhrkrrhnrblebciiivjug'
ERR Unknown yubikey

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.

2 participants