Fix Redis::sRandMember()
commit676a194367c52b2240a1d0efe896219e995c3b58
authorsvcscm <svcscm@fb.com>
Fri, 18 Jul 2014 01:24:13 +0000 (17 18:24 -0700)
committerfacebook-github-bot <githubbot@fb.com>
Fri, 18 Jul 2014 01:30:18 +0000 (17 18:30 -0700)
tree177ca50a0dd9f743fdcf2da7975c47587e6a790c
parenta5895a8d3ec7915077520fc4eee72d1ce3dab8f4
Fix Redis::sRandMember()

Summary: Don't require a second parameter which is originally optional.
Also, it shouldn't always return an array.

Closes: #3213
Closes #3217
Created from: https://github.com/facebook/hhvm/pull/3217

Reviewed By: @swtaarrs

Differential Revision: D1442294
hphp/system/php/redis/Redis.php
hphp/test/slow/ext_redis/srandmember.php [new file with mode: 0644]
hphp/test/slow/ext_redis/srandmember.php.expect [new file with mode: 0644]