-
Notifications
You must be signed in to change notification settings - Fork 39
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
Tests fail because of missing serialization #42
Comments
I think I have a possible fix brewing... I hope I will create PR soon. I currently think that we should just add the new Serializable methods, but that is a bit problematic since they are not compatible. Note that when unserializing php for the old format, php will pick the old Here is the idea for my fix:
By only adding the methods for 8.1+, we avoid possible problems in 7.4 and 8.0. |
Only for php8.1+. Calling the old php functions instead of mimicking the code. This is slower, but the code is simpler, and here we are only talking about when you run (un)serialize() function. The new serialize methods should throw on error. Issue: phpGH-42
Only for php8.1+. Calling the old php functions instead of mimicking the code. This is slower, but the code is simpler, and here we are only talking about when you run (un)serialize() function. The new serialize methods should throw on error. Issue: phpGH-42
Fixed in PR #43 |
In commit abebab9 the Serializable interface was removed.
Turns out that this creates problems because we are using serialization for internal things.
Failing tests:
Example error:
I am afraid to make a release with this error even though I've been running this code for a few months on a dev machine.
The text was updated successfully, but these errors were encountered: