Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix bug evalSha merge_array #47

Closed
wants to merge 1 commit into from
Closed

fix bug evalSha merge_array #47

wants to merge 1 commit into from

Conversation

vicla31
Copy link

@vicla31 vicla31 commented Oct 4, 2017

No description provided.

@staabm
Copy link
Member

staabm commented Oct 4, 2017

willing to provide a unit test?

@staabm staabm requested a review from kelunik October 4, 2017 15:58
@@ -1752,7 +1752,7 @@ public function time() {
* @yield mixed
*/
public function evalSha($sha1, $keys = [], $args = []) {
return $this->send(array_merge(["evalsha"], $sha1, sizeof((array) $keys), (array) $keys, (array) $args));
return $this->send(array_merge(["evalsha"], $sha1, (array) sizeof((array) $keys), (array) $keys, (array) $args));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be [sizeof((array) $keys)] instead.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, it's better

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vicla31 Could you make that change?

@kelunik
Copy link
Member

kelunik commented Nov 14, 2017

Fixed in #48.

@kelunik kelunik closed this Nov 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

3 participants