-
Notifications
You must be signed in to change notification settings - Fork 326
test: compression edge case verification #256
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
Conversation
The tests fail with this error:
The allowed memory size is a PHP config item. The test file could try adding this code to raise the limit:
If you have time to revisit this code, please also rebase to |
5c70a8a
to
666238e
Compare
Now that #255 is landed could you rebase this so we can confirm that tests pass? |
|
666238e
to
e932eed
Compare
I think the failures are this one (bool on line 9)
And this one (bool on line 22)
In both cases the false corresponds with an expected error. Wouldn't it make sense to expect false to go along with that error? |
Oh, oh I see - the $m->set($key, $value, 1800);
$value_back = $m->get($key);
var_dump($value === $value_back); |
I don't really see the point for this block of code: if (!compress_status) {
php_error_docref(NULL, E_WARNING, "could not compress value");
efree (buffer);
return 0;
} If the value was not compressed, then it won't be flagged as compressed, and so it'll go into memcached uncompressed. I see no problem with that. |
test compressed SET/GET under various settings of - compression_factor - compression_threshold - data length
Merged to master as 7283b11 |
thanks @sodabrew. my bad on overlooking during rebase. |
Uh oh!
There was an error while loading. Please reload this page.