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

Parse error: systax error, unexpected '=' in /srv/www/phpLDAPadmin-1.2.6.5/lib/functions.php on line 361 #185

Closed
el-piewie opened this issue Mar 2, 2023 · 4 comments

Comments

@el-piewie
Copy link

Unfortunately a new installation of PLA 1.2.6.5 throws this error:
Parse error: systax error, unexpected '=' in /srv/www/phpLDAPadmin-1.2.6.5/lib/functions.php on line 361
on SLES 12 with apache and php-7. How could it be fixed?

@bendem
Copy link

bendem commented Mar 2, 2023

This is this line, which fixes #165.

[$int, $mod] = [intval($match[1]), $match[2]];

That syntax is not compatible with php < 7.1. You will need to upgrade to at least that. Reminder that php7.0 has been out of support for many years, you should use 7.4 at least if you can't upgrade to 8.x yet.

https://www.php.net/manual/en/migration71.new-features.php#migration71.new-features.symmetric-array-destructuring
https://www.php.net/supported-versions.php

@bendem
Copy link

bendem commented Mar 2, 2023

Note that SLES 12 is php 7.4 since SP5: https://www.suse.com/releasenotes/x86_64/SUSE-SLES/12-SP5/index.html#jsc-SLE-12474. Older versions are not supported since 2021. https://scc.suse.com/docs/lifecycle/sle/12/modules

@el-piewie
Copy link
Author

Thx for the hint and your fast reply. It looks much better now ;-)

@el-piewie
Copy link
Author

After login it gets to ERROR "E_WARNING: openssl_encrypt(): setting of IV length for AEAD mode failed" now.
openssl-1.0.2p-fips
php74-openssl-7.4.33

This issue was closed.
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

2 participants