From cb3b8e536b744727f7cd78645fc879f787b24e96 Mon Sep 17 00:00:00 2001 From: Bob Weinand Date: Mon, 8 Feb 2016 01:40:23 +0100 Subject: [PATCH] Fix read lengths (bugfix in php-uv) Also prepare tag 0.1.1 --- CHANGELOG | 9 +++++++++ lib/UvHandle.php | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 CHANGELOG diff --git a/CHANGELOG b/CHANGELOG new file mode 100644 index 0000000..fcb3d1d --- /dev/null +++ b/CHANGELOG @@ -0,0 +1,9 @@ +### 0.1.1 + +- UID / GID must be ignored when -1 +- A bugfix in php-uv extension regarding lengths read was fixed; removed ugly workaround + +0.1.0 +----- + +- Initial release \ No newline at end of file diff --git a/lib/UvHandle.php b/lib/UvHandle.php index 9c44f88..e849798 100644 --- a/lib/UvHandle.php +++ b/lib/UvHandle.php @@ -41,7 +41,7 @@ class UvHandle implements Handle { $op->type = self::OP_READ; $op->position = $this->position; $op->promisor = $promisor; - $op->readLen = $readLen - 1; + $op->readLen = $readLen; if ($this->isActive) { $this->queue[] = $op; } else {