Skip to content

Instantly share code, notes, and snippets.

@nrk
Created February 12, 2011 20:56
Show Gist options
  • Save nrk/824112 to your computer and use it in GitHub Desktop.
Save nrk/824112 to your computer and use it in GitHub Desktop.
Predis 0.6.5 (2011-02-12) - Release notes

Predis 0.6.5 (2011-02-12) - Release notes

Predis is a flexible and feature-complete PHP client library for Redis. This is a maintenance release for the 0.6 series exclusively aimed to fix a bug introduced in v0.6.4 when reading zero-length bulk replies from the server. For a complete list of the new features introduced in Predis v0.6.4 you can read the related release notes.

New features and changes

Fix for the zero-length bulk replies bug

Due to a minor change introduced in Predis v0.6.4 that was not covered by any test, zero-length bulk replies were being incorrectly handled, which resulted in protocol desynchronization errors. Here is a snippet to reproduce the issue with v0.6.4:

$redis->set('foo', '');
$foo1 = $redis->get('foo'); // correct value returned, but wrong protocol handling
$foo2 = $redis->get('foo'); // desynchronization error ensues with the successive read op.    

Notes

Credits

Thanks to Jordi Boggiano for quickly spotting the above-mentioned bug and providing a patch to fix the issue.

Downloads

  • ** PHP 5.3 ** (mainline): TGZ or ZIP
  • ** PHP 5.2 ** (backport): TGZ or ZIP

Useful links

Release notes for previous versions

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