mirror of
https://github.com/predis/predis.git
synced 2026-08-24 19:09:39 +00:00
Fix bug reading zero-length values from a bulk response.
This commit is contained in:
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user