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

Installing using PHP 8.3.10 get $GLOBALS error. #874

Open
oppiet30 opened this issue Sep 3, 2024 · 0 comments
Open

Installing using PHP 8.3.10 get $GLOBALS error. #874

oppiet30 opened this issue Sep 3, 2024 · 0 comments

Comments

@oppiet30
Copy link

oppiet30 commented Sep 3, 2024

Bug report

Please give us a short description of the bug
Installing using PHP 8.3.10 and get a $GLOBALS error

Expected behaviour

For it to work
What did you expect to happen?
For it to work

Actual behaviour

[02-Sep-2024 23:58:10 UTC] PHP Fatal error: $GLOBALS can only be modified using the $GLOBALS[$name] = $value syntax in /home/oppie/public_html/webDiplomacy/header.php on line 140
What happened instead?
?

Steps to reproduce

Use PHP 8.3.10 or newer.
If you know how to trigger the bug, please tell us here

Warning
As of PHP 8.1.0, write access to the entire $GLOBALS array is no longer supported:

You have this in header.php file:
// Reset globals
// FIXME: Resetting this means $GLOBALS['asdf'] is no longer kept in sync with global $asdf. This causes problems during construction
line 140 = $GLOBALS = array();
line 141 = $GLOBALS['scriptStartTime'] = microtime(true);

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

1 participant