Skip to content

[BUG] Complex Resultset double unserializing #16036

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

Merged
merged 6 commits into from
Oct 14, 2022
Merged

[BUG] Complex Resultset double unserializing #16036

merged 6 commits into from
Oct 14, 2022

Conversation

ALameLlama
Copy link
Contributor

@ALameLlama ALameLlama commented Aug 3, 2022

Hello!

In raising this pull request, I confirm the following:

  • I have read and understood the Contributing Guidelines
  • I have checked that another pull request for this purpose does not exist
  • I wrote some tests for this PR
  • I have updated the relevant CHANGELOG
  • I have created a PR for the documentation about this change

Small description of change:
This fixes the double unserializing in the complex resultset, the function __unserialize(array data) takes an array and tries to unserialize it again, this can be removed since it's already unserialized by this point

I've also cleaned up the function serialize to have a data variable

Thanks

@ALameLlama ALameLlama changed the title #16035 [BUG] Complex Resultset double unserializing [BUG] Complex Resultset double unserializing Aug 3, 2022
@Jeckerson
Copy link
Member

This will fail in PHP8.1. As there are no tests against Complex class so CI passes...

@ALameLlama
Copy link
Contributor Author

@Jeckerson I think the new changes made to this PR should work with both 7.4-8.0 and 8.1

@Jeckerson Jeckerson added bug A bug report 5.0 The issues we want to solve in the 5.0 release labels Oct 14, 2022
@Jeckerson Jeckerson merged commit e8b83a7 into phalcon:5.0.x Oct 14, 2022
@Jeckerson
Copy link
Member

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
5.0 The issues we want to solve in the 5.0 release bug A bug report
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

[BUG]: Phalcon v5.0.2 + PHP 8.1 - Model caching error [BUG]: Complex Resultset double unserializing
2 participants