Skip to content
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

Fix unserialization of empty BloomFilter #6

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

deeky666
Copy link

I am not sure whether this is a known limitation but I don't see why this should not work.
Currently unserializing empty BloomFilter objects errors:

PHP 5

Notice: unserialize(): Error at offset 24 of 195 bytes

PHP 7

php: symbol lookup error: modules/bloomy.so: undefined symbol: smart_str_appendl

See attached test case.

EDIT
Adopted a fix from @anoakie (anoakie@6a5966a). PHP 5 works now, however PHP 7 serialization seems to be non-working yet at all.

@deeky666 deeky666 changed the title Add failing test for unserialize empty BloomFilter Fix unserialization of empty BloomFilter Jan 18, 2016
@deeky666
Copy link
Author

Okay patch added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant