Fix bug reading zero-length values from a bulk response.

This commit is contained in:
Daniele Alessandri
2011-02-12 21:39:53 +01:00
parent d4fb7d9143
commit c41bb2c314
4 changed files with 16 additions and 2 deletions
+6
View File
@@ -381,6 +381,12 @@ class PredisClientFeaturesTestSuite extends PHPUnit_Framework_TestCase {
});
}
function testResponseReader_EmptyBulkResponse() {
$this->assertTrue($this->redis->set('foo', ''));
$this->assertEquals('', $this->redis->get('foo'));
$this->assertEquals('', $this->redis->get('foo'));
}
/* Client + CommandPipeline */