From ce9267712dd242d8abd02c8f6a41ec0c74fed0b6 Mon Sep 17 00:00:00 2001 From: nleach Date: Wed, 2 Feb 2011 01:05:51 -0500 Subject: [PATCH] readReply() wasn't properly handling MULTIBULK replies with `nil` values /hat-tip @oburt --- iredis.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iredis.php b/iredis.php index a69acf6..0c635eb 100644 --- a/iredis.php +++ b/iredis.php @@ -177,7 +177,7 @@ public function readReply() { $bulk_head = trim(fgets($this->connection, 512)); - if ($size == '-1') + if (substr($bulk_head, 1) == '-1') { $response[] = null; }