★ wanayoo — archive 1999 https://github.com/phpredis/phpredis/issues/1573Nouvelle recherche | Portail wanayoo
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

lRange method bug? OR document errors? #1573

Closed
egege opened this issue Jun 10, 2019 · 1 comment
Closed

lRange method bug? OR document errors? #1573

egege opened this issue Jun 10, 2019 · 1 comment

Comments

@egege
Copy link

@egege egege commented Jun 10, 2019

Expected behaviour

$redis->rPush('key1', 'A');
$redis->rPush('key1', 'B');
$redis->rPush('key1', 'C');
$redis->lRange('key1', 0, -1); /* ['A', 'B', 'C'] */

Actual behaviour

['A', 'B']
$redis->lRange('key1', 0, 0); /* ['A', 'B', 'C'] */

I'm seeing this behaviour on

  • OS: Linux version 3.10.0-693.17.1.el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-16) (GCC) ) #1 SMP Thu Jan 25 20:13:58 UTC 2018

  • Redis:4.0.10

  • PHP:PHP 5.6.39-0+deb8u2 (cli) (built: Feb 12 2019 01:54:35)

  • phpredis:3.1.6

@egege egege closed this Jun 10, 2019
@egege
Copy link
Author

@egege egege commented Jun 10, 2019

sorry,my fault.I don't know my project somebody overload this method

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.