Skip to content

Commit e206ce9

Browse files
committed
Set default values for ini entries
1 parent 908ac4b commit e206ce9

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

redis.c

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -55,30 +55,30 @@ extern zend_function_entry redis_cluster_functions[];
5555

5656
PHP_INI_BEGIN()
5757
/* redis arrays */
58-
PHP_INI_ENTRY("redis.arrays.autorehash", "", PHP_INI_ALL, NULL)
59-
PHP_INI_ENTRY("redis.arrays.connecttimeout", "", PHP_INI_ALL, NULL)
58+
PHP_INI_ENTRY("redis.arrays.autorehash", "0", PHP_INI_ALL, NULL)
59+
PHP_INI_ENTRY("redis.arrays.connecttimeout", "0", PHP_INI_ALL, NULL)
6060
PHP_INI_ENTRY("redis.arrays.distributor", "", PHP_INI_ALL, NULL)
6161
PHP_INI_ENTRY("redis.arrays.functions", "", PHP_INI_ALL, NULL)
6262
PHP_INI_ENTRY("redis.arrays.hosts", "", PHP_INI_ALL, NULL)
63-
PHP_INI_ENTRY("redis.arrays.index", "", PHP_INI_ALL, NULL)
64-
PHP_INI_ENTRY("redis.arrays.lazyconnect", "", PHP_INI_ALL, NULL)
63+
PHP_INI_ENTRY("redis.arrays.index", "0", PHP_INI_ALL, NULL)
64+
PHP_INI_ENTRY("redis.arrays.lazyconnect", "0", PHP_INI_ALL, NULL)
6565
PHP_INI_ENTRY("redis.arrays.names", "", PHP_INI_ALL, NULL)
66-
PHP_INI_ENTRY("redis.arrays.pconnect", "", PHP_INI_ALL, NULL)
66+
PHP_INI_ENTRY("redis.arrays.pconnect", "0", PHP_INI_ALL, NULL)
6767
PHP_INI_ENTRY("redis.arrays.previous", "", PHP_INI_ALL, NULL)
68-
PHP_INI_ENTRY("redis.arrays.readtimeout", "", PHP_INI_ALL, NULL)
69-
PHP_INI_ENTRY("redis.arrays.retryinterval", "", PHP_INI_ALL, NULL)
68+
PHP_INI_ENTRY("redis.arrays.readtimeout", "0", PHP_INI_ALL, NULL)
69+
PHP_INI_ENTRY("redis.arrays.retryinterval", "0", PHP_INI_ALL, NULL)
7070

7171
/* redis cluster */
72-
PHP_INI_ENTRY("redis.clusters.persistent", "", PHP_INI_ALL, NULL)
73-
PHP_INI_ENTRY("redis.clusters.read_timeout", "", PHP_INI_ALL, NULL)
72+
PHP_INI_ENTRY("redis.clusters.persistent", "0", PHP_INI_ALL, NULL)
73+
PHP_INI_ENTRY("redis.clusters.read_timeout", "0", PHP_INI_ALL, NULL)
7474
PHP_INI_ENTRY("redis.clusters.seeds", "", PHP_INI_ALL, NULL)
75-
PHP_INI_ENTRY("redis.clusters.timeout", "", PHP_INI_ALL, NULL)
75+
PHP_INI_ENTRY("redis.clusters.timeout", "0", PHP_INI_ALL, NULL)
7676

7777
/* redis session */
78-
PHP_INI_ENTRY("redis.session.locking_enabled", "", PHP_INI_ALL, NULL)
79-
PHP_INI_ENTRY("redis.session.lock_expire", "", PHP_INI_ALL, NULL)
80-
PHP_INI_ENTRY("redis.session.lock_retries", "", PHP_INI_ALL, NULL)
81-
PHP_INI_ENTRY("redis.session.lock_wait_time", "", PHP_INI_ALL, NULL)
78+
PHP_INI_ENTRY("redis.session.locking_enabled", "0", PHP_INI_ALL, NULL)
79+
PHP_INI_ENTRY("redis.session.lock_expire", "0", PHP_INI_ALL, NULL)
80+
PHP_INI_ENTRY("redis.session.lock_retries", "10", PHP_INI_ALL, NULL)
81+
PHP_INI_ENTRY("redis.session.lock_wait_time", "2000", PHP_INI_ALL, NULL)
8282
PHP_INI_END()
8383

8484
/** {{{ Argument info for commands in redis 1.0 */

0 commit comments

Comments
 (0)