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

PHP 8 Update for bootstrap.inc #81

Open
wants to merge 1 commit into
base: 6.x
Choose a base branch
from
Open

PHP 8 Update for bootstrap.inc #81

wants to merge 1 commit into from

Conversation

Dorson
Copy link

@Dorson Dorson commented Feb 8, 2024

Updated syntax / variable definition to the PHP 8 version standard.

Makes the bootstrap.inc run on php 8.2

old format was ${VAR} , new PHP8 format is {$VAR}

Simple , one letter change makes it work :-)

Updated syntax / variable definition to the PHP 8 version standard.

Makes the bootstrap.inc run on php 8 

old format was ${VAR}  , new PHP8 format is  {$VAR} 

Simple , one letter change makes it work :-)
@Dorson
Copy link
Author

Dorson commented Feb 8, 2024

This really solved my issues. Drupal d6lts would not run on my PHP 8.2 version.

The variable syntax change was suggested by PHP 8.2 itself , because it would not execute the code otherwise.

Here is the explanation from the PHP 8.2 documentation :

https://php.watch/versions/8.2/$%7Bvar%7D-string-interpolation-deprecated

Here is the search for all the similar / possilbe bugs of the same type in this repo :

https://github.com/search?q=repo%3Ad6lts%2Fdrupal%20%2F%24%7B%2F&type=code

Hope it helps !

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.

1 participant