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

Skip to content

Commit fa1a283

Browse files
Fix some typos
1 parent 4d23397 commit fa1a283

7 files changed

Lines changed: 24 additions & 24 deletions

File tree

library.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2956,7 +2956,7 @@ static int redis_stream_detect_dirty(php_stream *stream) {
29562956
if ((fd = redis_stream_fd_for_select(stream)) == -1)
29572957
return FAILURE;
29582958

2959-
/* We want to detect a readable socket (it shouln't be) */
2959+
/* We want to detect a readable socket (it shouldn't be) */
29602960
REDIS_POLL_FD_SET(pfd, fd, PHP_POLLREADABLE);
29612961
rv = php_poll2(&pfd, 1, redis_pool_poll_timeout());
29622962

redis.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@ PHP_METHOD(Redis, reset)
723723
}
724724

725725
if (IS_PIPELINE(redis_sock)) {
726-
php_error_docref(NULL, E_ERROR, "Reset ins't allowed in pipeline mode!");
726+
php_error_docref(NULL, E_ERROR, "Reset isn't allowed in pipeline mode!");
727727
RETURN_FALSE;
728728
}
729729

redis.stub.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1472,7 +1472,7 @@ public function getBit(string $key, int $idx): Redis|int|false;
14721472
*
14731473
* @return Redis|string|bool The key's value or false if it didn't exist.
14741474
*
1475-
* @see https://redis.io/comands/getex
1475+
* @see https://redis.io/commands/getex
14761476
*
14771477
* @example $redis->getEx('mykey', ['EX' => 60]);
14781478
*/
@@ -2175,7 +2175,7 @@ public function lrem(string $key, mixed $value, int $count = 0): Redis|int|false
21752175
public function ltrim(string $key, int $start , int $end): Redis|bool;
21762176

21772177
/**
2178-
* Get one ore more string keys.
2178+
* Get one or more string keys.
21792179
*
21802180
* @param array $keys The keys to retrieve
21812181
* @return Redis|array|false an array of keys with their values.
@@ -2197,7 +2197,7 @@ public function migrate(string $host, int $port, string|array $key, int $dstdb,
21972197
public function move(string $key, int $index): Redis|bool;
21982198

21992199
/**
2200-
* Set one ore more string keys.
2200+
* Set one or more string keys.
22012201
*
22022202
* @param array $key_values An array with keys and their values.
22032203
* @return Redis|bool True if the keys could be set.
@@ -2209,7 +2209,7 @@ public function move(string $key, int $index): Redis|bool;
22092209
public function mset(array $key_values): Redis|bool;
22102210

22112211
/**
2212-
* Set one ore more string keys but only if none of the key exist.
2212+
* Set one or more string keys but only if none of the key exist.
22132213
*
22142214
* @param array $key_values An array of keys with their values.
22152215
*
@@ -2445,7 +2445,7 @@ public function punsubscribe(array $patterns): Redis|array|bool;
24452445
* @param int $count The maximum number of elements to pop at once.
24462446
* NOTE: The `count` argument requires Redis >= 6.2.0
24472447
*
2448-
* @return Redis|array|string|bool One ore more popped elements or false if all were empty.
2448+
* @return Redis|array|string|bool One or more popped elements or false if all were empty.
24492449
*
24502450
* @see https://redis.io/commands/rpop
24512451
*
@@ -2604,7 +2604,7 @@ public function rpoplpush(string $srckey, string $dstkey): Redis|string|false;
26042604
public function sAdd(string $key, mixed $value, mixed ...$other_values): Redis|int|false;
26052605

26062606
/**
2607-
* Add one ore more values to a Redis SET key. This is an alternative to Redis::sadd() but
2607+
* Add one or more values to a Redis SET key. This is an alternative to Redis::sadd() but
26082608
* instead of being variadic, takes a single array of values.
26092609
*
26102610
* @see https://redis.io/commands/sadd
@@ -2944,7 +2944,7 @@ public function scard(string $key): Redis|int|false;
29442944
* @see https://redis.io/commands/script
29452945
*
29462946
* @param string $command The script suboperation to execute.
2947-
* @param mixed $args One ore more additional argument
2947+
* @param mixed $args One or more additional argument
29482948
*
29492949
* @return mixed This command returns various things depending on the specific operation executed.
29502950
*
@@ -3598,7 +3598,7 @@ public function watch(array|string $key, string ...$other_keys): Redis|bool;
35983598
public function wait(int $numreplicas, int $timeout): int|false;
35993599

36003600
/**
3601-
* Acknowledge one ore more messages that are pending (have been consumed using XREADGROUP but
3601+
* Acknowledge one or more messages that are pending (have been consumed using XREADGROUP but
36023602
* not yet acknowledged by XACK.)
36033603
*
36043604
* @param string $key The stream to query.
@@ -4105,7 +4105,7 @@ public function zMscore(string $key, mixed $member, mixed ...$other_members): Re
41054105
* @param string $key The sorted set to pop elements from.
41064106
* @param int $count An optional count of elements to pop.
41074107
*
4108-
* @return Redis|array|false All of the popped elements with scores or false on fialure.
4108+
* @return Redis|array|false All of the popped elements with scores or false on failure
41094109
*
41104110
* @see https://redis.io/commands/zpopmax
41114111
*
@@ -4244,7 +4244,7 @@ public function zrangestore(string $dstkey, string $srckey, string $start, strin
42444244
* 'COUNT' int The number of random members to return.
42454245
* 'WITHSCORES' bool Whether to return scores and members instead of
42464246
*
4247-
* @return Redis|string|array One ore more random elements.
4247+
* @return Redis|string|array One or more random elements.
42484248
*
42494249
* @see https://redis.io/commands/zrandmember
42504250
*
@@ -4443,7 +4443,7 @@ public function zScore(string $key, mixed $member): Redis|float|false;
44434443
* Given one or more sorted set key names, return every element that is in the first
44444444
* set but not any of the others.
44454445
*
4446-
* @param array $keys One ore more sorted sets.
4446+
* @param array $keys One or more sorted sets.
44474447
* @param array $options An array which can contain ['WITHSCORES' => true] if you want Redis to
44484448
* return members and scores.
44494449
*
@@ -4479,7 +4479,7 @@ public function zdiffstore(string $dst, array $keys): Redis|int|false;
44794479
/**
44804480
* Compute the intersection of one or more sorted sets and return the members
44814481
*
4482-
* @param array $keys One ore more sorted sets.
4482+
* @param array $keys One or more sorted sets.
44834483
* @param array $weights An optional array of weights to be applied to each set when performing
44844484
* the intersection.
44854485
* @param array $options Options for how Redis should combine duplicate elements when performing the
@@ -4507,7 +4507,7 @@ public function zinter(array $keys, ?array $weights = null, ?array $options = nu
45074507
* @see https://redis.io/commands/zinter
45084508
* @see Redis::zinter()
45094509
*
4510-
* @param array $keys One ore more sorted set key names.
4510+
* @param array $keys One or more sorted set key names.
45114511
* @param int $limit An optional upper bound on the returned cardinality. If set to a value
45124512
* greater than zero, Redis will stop processing the intersection once the
45134513
* resulting cardinality reaches this limit.
@@ -4523,10 +4523,10 @@ public function zinter(array $keys, ?array $weights = null, ?array $options = nu
45234523
public function zintercard(array $keys, int $limit = -1): Redis|int|false;
45244524

45254525
/**
4526-
* Compute the intersection of one ore more sorted sets storing the result in a new sorted set.
4526+
* Compute the intersection of one or more sorted sets storing the result in a new sorted set.
45274527
*
45284528
* @param string $dst The destination sorted set to store the intersected values.
4529-
* @param array $keys One ore more sorted set key names.
4529+
* @param array $keys One or more sorted set key names.
45304530
* @param array $weights An optional array of floats to weight each passed input set.
45314531
* @param string $aggregate An optional aggregation method to use.
45324532
*
@@ -4576,7 +4576,7 @@ public function zscan(string $key, ?int &$iterator, ?string $pattern = null, int
45764576
/**
45774577
* Retrieve the union of one or more sorted sets
45784578
*
4579-
* @param array $keys One ore more sorted set key names
4579+
* @param array $keys One or more sorted set key names
45804580
* @param array $weights An optional array with floating point weights used when performing the union.
45814581
* Note that if this argument is passed, it must contain the same number of
45824582
* elements as the $keys array.

redis_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: b3743c9174347f5d783043abfdc5b626159b2364 */
2+
* Stub hash: 685a816f4e46c30d8a9ae787948c69d8a20213b1 */
33

44
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Redis___construct, 0, 0, 0)
55
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_ARRAY, 1, "null")

redis_cluster.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1042,7 +1042,7 @@ PHP_METHOD(RedisCluster, sdiffstore) {
10421042
}
10431043
/* }}} */
10441044

1045-
/* {{{ proto bool RedisCluster::smove(sting src, string dst, string mem) */
1045+
/* {{{ proto bool RedisCluster::smove(string src, string dst, string mem) */
10461046
PHP_METHOD(RedisCluster, smove) {
10471047
CLUSTER_PROCESS_CMD(smove, cluster_1_resp, 0);
10481048
}
@@ -2201,7 +2201,7 @@ static void cluster_raw_cmd(INTERNAL_FUNCTION_PARAMETERS, char *kw, int kw_len)
22012201
short slot;
22022202
int i, argc = ZEND_NUM_ARGS();
22032203

2204-
/* Commands using this pass-thru don't need to be enabled in MULTI mode */
2204+
/* Commands using this pass-through don't need to be enabled in MULTI mode */
22052205
if (!CLUSTER_IS_ATOMIC(c)) {
22062206
php_error_docref(0, E_WARNING,
22072207
"Command can't be issued in MULTI mode");
@@ -2754,7 +2754,7 @@ PHP_METHOD(RedisCluster, script) {
27542754
short slot;
27552755
int argc = ZEND_NUM_ARGS();
27562756

2757-
/* Commands using this pass-thru don't need to be enabled in MULTI mode */
2757+
/* Commands using this pass-through don't need to be enabled in MULTI mode */
27582758
if (!CLUSTER_IS_ATOMIC(c)) {
27592759
php_error_docref(0, E_WARNING,
27602760
"Command can't be issued in MULTI mode");

redis_commands.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5230,7 +5230,7 @@ redis_copy_cmd(INTERNAL_FUNCTION_PARAMETERS, RedisSock *redis_sock,
52305230
}
52315231

52325232
if (slot && db != -1) {
5233-
php_error_docref(NULL, E_WARNING, "Cant copy to a specific DB in cluster mode");
5233+
php_error_docref(NULL, E_WARNING, "Can't copy to a specific DB in cluster mode");
52345234
return FAILURE;
52355235
}
52365236

redis_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: b3743c9174347f5d783043abfdc5b626159b2364 */
2+
* Stub hash: 685a816f4e46c30d8a9ae787948c69d8a20213b1 */
33

44
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Redis___construct, 0, 0, 0)
55
ZEND_ARG_INFO(0, options)

0 commit comments

Comments
 (0)