At one point, php's socket_read($socket, $n); would return $n bytes, but the docs said it would return $n-1.
So they fixed the code.
Not the docs.