- Issue created by @Liam Morland
- π¨π¦Canada joseph.olstad
D7 default should now be set to PHP 8.2
AND
PHP 8.3 automated tests should be added here: - πΈπ°Slovakia poker10
Thanks for creating the issue. Let's try how PHP 8.3 test suite runs on D7 core currently. Adding a noop patch.
- last update
over 1 year ago Patch Failed to Apply - last update
over 1 year ago Patch Failed to Apply - last update
over 1 year ago Patch Failed to Apply - last update
over 1 year ago Patch Failed to Apply - last update
over 1 year ago 2,158 pass, 3 fail - last update
over 1 year ago 2,119 pass, 3 fail - last update
over 1 year ago 2,154 pass, 3 fail - πΈπ°Slovakia poker10
This looks good. There seems to be only one problem with unserialization in D7 core tests (there could be more, but not catched by tests).
I have created an issue with the fix for the unserialize failure: π [D7 PHP 8.3] unserialize(): Extra data starting at offset Fixed
- πΈπ°Slovakia poker10
The child issue is fixed. Let's check with another noop patch if we are green now.
- last update
about 1 year ago 2,155 pass, 2 fail - last update
about 1 year ago 2,119 pass, 3 fail 56:59 56:13 Running57:00 56:38 Running57:00 56:13 Running57:00 56:39 Running- last update
about 1 year ago 2,157 pass - last update
about 1 year ago 2,161 pass - last update
about 1 year ago 2,122 pass - last update
about 1 year ago run-tests.sh exception - πΈπ°Slovakia poker10
Seems like other failure/s appeared in PHP8.3-RC tests, so we need to check these as well (probably something must have changed between PHP8.3 beta and RC, because we were already green after #3380876).
- πΈπ°Slovakia poker10
Seems like the
TextSummaryTestCase
failures could be related to similar failures in D10: π TextSummaryTest:testLength() fails on some libxml versions Closed: outdated . So we need to create an issue for this in D7 as well. - πΈπ°Slovakia poker10
Created new child issue π [D7 PHP 8.3] TextSummaryTestCase::testLength() fails on some libxml versions Active .
- last update
about 1 year ago 2,159 pass, 2 fail - π«π·France andypost
queued last patch on 8.3.0RC5 looks the only broken test!
- π¨π¦Canada joseph.olstad
Nice, only 2 fails! Subscribing.
PHP 8.3 is scheduled to release on November 23, 2023
Release candidate 6 is in a few days from now, perhaps we get lucky with rc6 passing more tests than rc5?
or is this a documented/expected fail?
- πΈπ°Slovakia poker10
I do not think that the failures will disappear, as it seems like that they are caused by some changes in libxml library, not directly by PHP 8.3 (see the child issue).
- last update
about 1 year ago 2,161 pass, 2 fail - last update
about 1 year ago 2,161 pass, 2 fail - π«π·France andypost
Failed test for session needs new issue and still active π [D7 PHP 8.3] TextSummaryTestCase::testLength() fails on some libxml versions Active
- Merge request !8020Draft: Issue #3380823: [META] Make Drupal 7 core compatible with PHP 8.3 β (Open) created by poker10
- πΈπ°Slovakia poker10
I have created another child issue for the session failure.
testEmptySessionId() failure: π [D7 PHP 8.3] Fix SessionHttpsTestCase->testEmptySessionId() failure Needs review
testLength() failure: π [D7 PHP 8.3] TextSummaryTestCase::testLength() fails on some libxml versions Active
Created also a draft MR here with PHP 8.3 testing (https://git.drupalcode.org/project/drupal/-/merge_requests/8020) and after applying fixes from both issues, tests are green, see: https://git.drupalcode.org/project/drupal/-/pipelines/170105 (sorry for multiple commits, but I had/have issues with replicating the session failure locally).
- πΈπ°Slovakia poker10
Hiding the old patch as we have now a MR here for testing.
- π¨π¦Canada joseph.olstad
@poker10, great work!
So if I understand correctly, you've put all the fixes into the MR 8020, then split off the actual code that does the fixes into those two issues 3446569 and 3397882 ?
Right now I see 100% green in the MR 8020 - πΈπ°Slovakia poker10
Yes - both fixes are in MR 8020 to see the final effect (but this MR will not be committed) and then there are two separate issues with MRs to commit.
I have done it because the MR workflow is more flexible and also because I was not able to simulate the session test failure locally, so I needed to experiment a bit.
- π¬π§United Kingdom DiogoTheCoder London
Thanks @liam-morland for reporting this issue and @poker10 for raising the merge request. Do we know whether it will be approved and merged before Drupal 7 comes to end-of-life support in Jan 2025?
- Status changed to Needs review
3 months ago 2:04pm 17 September 2024 - π¨π¦Canada Liam Morland Ontario, CA π¨π¦
@poker10 Is there a reason the merge request is still marked as a draft?
- πΈπ°Slovakia poker10
@liam morland This is a meta issue for tracking all child issues needed to fix PHP 8.3 compatibility. So far we have identified only two (#3397882 and #3446569). I have created an MR here with the two fixes to see, if both will be committed, if our tests will be green. So there will be no commit from this meta issue, we will commit both fixes from the separate issues I mentioned.
- π«π·France andypost
Curious if it make sense to file PHP 8.4 compatibility issue as it coming in a month
- πΈπ°Slovakia poker10
The last release of D7 is currently planned for 2024-12-04 , so I think we can create that issue and at least check, what issues there will be with automated testing and try to fix them. I think that it could still be possible to fix them until the release (or EOL) if there will be enough interest and if they won't require some major changes to D7 code.
- Merge request !10441Draft: Issue #3380823: [META] Make Drupal 7 core compatible with PHP 8.3 β (Open) created by poker10
- πΈπ°Slovakia poker10
Child issues are now committed. Tests are green on PHP 8.3 - https://git.drupalcode.org/project/drupal/-/pipelines/357773
I have also run Gitlab pipeline for PostgreSQL17 and MySQL 8.4, both seems to be green (which are obviously good news).
Curiously also run pipeline for PHP 8.4, but there are failures and given the large amount of changes, I do not think that there is enough time to fix the PHP 8.4 compatibility for D7.
We can keep this issue open just in case someone will run into an issue on PHP 8.3, but then we will close it. Thanks!
(moving back to Active, as there is nothing to review/commit)
- πΈπ°Slovakia poker10
I tested the PHP8.4 in the draft MR I have created today (https://git.drupalcode.org/project/drupal/-/pipelines/357813), but there seems to be a lot of changes / errors, so given that the last D7 release is tomorrow, I do not think it is something we can fix until EOL, unfortunatelly.
- π©π°Denmark ressa Copenhagen
Thanks!
It says on PHP requirements for Drupal 7 β that PHP 8.3 is supported "Yes, as of Drupal 7.103", so perhaps this issue could be included on the release page for Drupal 7.103 β ?
- πΈπ°Slovakia poker10
Thanks @ressa! Added a mention about the PHP 8.3 compatibility to the release notes on https://www.drupal.org/project/drupal/releases/7.103 β .
- π©π°Denmark ressa Copenhagen
Perfect! Thanks @poker10 and all the other D7 maintainers for keeping Drupal 7 updated, and expanding it with new features, like PHP 8.3 compatibility.