Skip to content

Commit 2fc7d36

Browse files
committed
Fix wrong INI parsing method for memcached.sess_randomize_replica_read
1 parent 5c6de2b commit 2fc7d36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: php_memcached.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ PHP_INI_BEGIN()
346346
#endif
347347
MEMC_SESSION_INI_ENTRY("consistent_hash", "1", OnUpdateBool, consistent_hash_enabled)
348348
MEMC_SESSION_INI_ENTRY("number_of_replicas", "0", OnUpdateLongGEZero, number_of_replicas)
349-
MEMC_SESSION_INI_ENTRY("randomize_replica_read", "0", OnUpdateLongGEZero, randomize_replica_read_enabled)
349+
MEMC_SESSION_INI_ENTRY("randomize_replica_read", "0", OnUpdateBool, randomize_replica_read_enabled)
350350
MEMC_SESSION_INI_ENTRY("remove_failed_servers", "0", OnUpdateBool, remove_failed_servers_enabled)
351351
MEMC_SESSION_INI_ENTRY("server_failure_limit", "0", OnUpdateLongGEZero, server_failure_limit)
352352
MEMC_SESSION_INI_ENTRY("connect_timeout", "0", OnUpdateLongGEZero, connect_timeout)

0 commit comments

Comments
 (0)