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
phpMyAdmin 4.9.6 + PHP 7.0: PHP Parse error: syntax error, unexpected '?', expecting variable (T_VARIABLE) in vendor/twig/twig/src/Node/Expression/GetAttrExpression.php #16397
Comments
|
Thank you for the report. Yes, this is supposed to work with PHP 7.0; there seems to have been some incompatibility introduced with one of the library dependencies we use for handling page templates...we'll take a look. |
|
Thanks. Looks like a too modern version of twig was included. Perhaps the composer.json file in the 4.9.x branch should contain something like this to prevent installing dependencies that have a too high minimum php version? |
|
Without looking I would suggest that the PHP version building the 4.9 bundle was not using the lower supported php version. |
|
I am uploading new phpMyAdmin releases 4.9.7 and 5.0.4 which should fix this. Thank you for your report. |
|
Issue is still there on 4.9.7 release. |
|
I tried reverting to 4.9.6. 4.9.5 to no avail :-( |
|
@4levels Could you please confirm which PHP version you're using? I tested with PHP 5.6 before the release. It could be related to running from Git, could you please let us know a little more about your deployment process? Are you running |
|
Sure, glad to! |
|
Composer calls: |
|
|
Seems a bit weird to me that different versions of twig are installed, or is this supposed to be? |
|
A friend pointed out that it might be related to calling composer update during the installation. I just updated my build steps to not call composer update and all is well now! Sorry for the false positive here, my bad |
|
That's strange to me (as someone who sort of understands Composer but is by no means an expert),
The version numbers for the various Twig components aren't in sync or really related to each other, so this is not surprising. Good thought, though. Anyway, I'm glad you sorted it out! |
Describe the bug
phpMyAdmin 4.9.6 running on Debian 9's PHP 7.0.33-0+deb9u10 packages white-screens and logs the following in the apache error log:
To Reproduce
Expected behavior
phpMyAdmin should load up and display a login screen, and no errors logged to the apache log
Server configuration
Client configuration
Additional context
Reverting back to phpMyAdmin 4.9.5 works. Isn't the 4.9.x series supposed to be PHP 7.0 compatible?
The text was updated successfully, but these errors were encountered: