Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0243dd9

Browse files
SENTINEL RESET returns a long.
1 parent 72f8eb2 commit 0243dd9

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

redis_sentinel.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ PHP_METHOD(RedisSentinel, ping)
140140

141141
PHP_METHOD(RedisSentinel, reset)
142142
{
143-
REDIS_PROCESS_KW_CMD("reset", redis_sentinel_str_cmd, redis_boolean_response);
143+
REDIS_PROCESS_KW_CMD("reset", redis_sentinel_str_cmd, redis_long_response);
144144
}
145145

146146
PHP_METHOD(RedisSentinel, sentinels)

redis_sentinel.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function myid(): string;
3333
/** @return bool|RedisSentinel */
3434
public function ping();
3535

36-
/** @return bool|RedisSentinel */
36+
/** @return int|RedisSentinel */
3737
public function reset(string $pattern);
3838

3939
/** @return array|bool|RedisSentinel */

redis_sentinel_arginfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: 4055ace9f1cf20bef89bdb5d3219470b4c8915e6 */
2+
* Stub hash: 847c735dfbbb643366344acfe6e2c5e8b76d0520 */
33

44
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_RedisSentinel___construct, 0, 0, 1)
55
ZEND_ARG_TYPE_INFO(0, host, IS_STRING, 0)

redis_sentinel_legacy_arginfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: 4055ace9f1cf20bef89bdb5d3219470b4c8915e6 */
2+
* Stub hash: 847c735dfbbb643366344acfe6e2c5e8b76d0520 */
33

44
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_RedisSentinel___construct, 0, 0, 1)
55
ZEND_ARG_INFO(0, host)

tests/RedisSentinelTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public function testPing()
9696

9797
public function testReset()
9898
{
99-
$this->assertFalse($this->sentinel->reset('*'));
99+
$this->assertEquals(1, $this->sentinel->reset('*'));
100100
}
101101

102102
public function testSentinels()

0 commit comments

Comments
 (0)