Skip to content

Conversation

@clue
Copy link
Member

@clue clue commented May 16, 2025

This changeset adds support for PHP 8.3 and works around reporting any unserialize warnings for trailing data. This is part 8 of reviving Ratchet as discussed in #1054, unblocking more future progress.

With these changes applied, the existing test suite recently updated with #1096, #1094, #1093 and #1092 now works fine on PHP 8.3 at last. In particular, this works around warnings reported due to https://wiki.php.net/rfc/unserialize_warn_on_trailing_data (not to be confused with https://wiki.php.net/rfc/improve_unserialize_error_handling) as reported in #1076 and others. Once merged, I'll use this as a starting point to add newer PHP 8.4+ version support as discussed in #1003 and elsewhere.

Overall, this still requires a massive effort. If you want to support this project, please consider sponsoring @reactphp ❤️

Builds on top of #1096, #1094, #1093, #1092, #1091 and #1088, one step closer to reviving Ratchet as discussed in #1054
Resolves / closes #1076

@clue clue added this to the 0.4.5 milestone May 16, 2025
Copy link
Contributor

@PaulRotmann PaulRotmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@clue clue merged commit e3cb823 into ratchetphp:0.4.x May 16, 2025
13 checks passed
@clue clue deleted the php8.3 branch May 16, 2025 12:44
@clue
Copy link
Member Author

clue commented May 16, 2025

Let's get this in so we can finally add current PHP 8.4+ support in a follow-up! :shipit: 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PHP 8.3 issue - Warning: unserialize(): Extra data starting at offset 767 of 860 bytes in PhpHandler.php on line 41

2 participants