-
Notifications
You must be signed in to change notification settings - Fork 24
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
Upgrade PHP to 8.3 #2936
Comments
Issues migrating from 7.2 to 8.0 (Copied from #2784):
|
Potential issues migrating from 8.0 to 8.1 (from https://www.php.net/manual/en/migration81.incompatible.php): MySQL Driver ¶ Integers and floats in result sets will now be returned using native PHP types instead of strings when using emulated prepared statements. This matches the behavior of native prepared statements. The previous behaviour can be restored by enabling the PDO::ATTR_STRINGIFY_FETCHES option. |
Potential issues migrating from 8.1 to 8.2 (from https://www.php.net/manual/en/migration82.incompatible.php): str_split() returns an empty array for an empty string now. Previously it returned an array with a single empty string entry. mb_str_split() is not affected by this change as it was already behaving like that. |
Potential issues migrating from 8.2 to 8.3 (from https://www.php.net/manual/en/migration83.incompatible.php) The range() function has had various changes: If $step is a float that can be interpreted as an int, it is now done so. |
Looks like the migration to PHP 8.3 should be pretty straightforward. |
I did some thinking about future things we might want to upgrade:
I want to come up with a proposed schedule, so we don't keep getting caught on the back foot by this. My suggestion is:
|
I discussed this schedule with Shadowshade offline, and we're going to go with it, and further get started on Ubuntu 24.04/PHP 8.3 in September, so that we can get it done soon, but have August to work on more direct player requests before pursuing yet another invisible infrastructure thing. |
Linking Issue #3003, which talks about the changes needed to the test cases when we upgrade PHPUnit. |
I note that we're going to need to upgrade our infrastructure relatively soon (linking #2784 and #2928), so I'm opening this issue for the PHP part of that.
On #2784, I noted the steps we would need to take to migrate from 7.2-ish to 8.0.
The text was updated successfully, but these errors were encountered: