Skip to content

Commit 6cf172d

Browse files
authored
Merge pull request #16819 from tashik/fix-storage-adapter-libmemcached
fix #16818: override memcached options correctly
2 parents 1925a45 + b2367d6 commit 6cf172d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

phalcon/Storage/Adapter/Libmemcached.zep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ class Libmemcached extends AbstractAdapter
136136
\Memcached::OPT_REMOVE_FAILED_SERVERS : true,
137137
\Memcached::OPT_RETRY_TIMEOUT : 1
138138
],
139-
client = array_merge(failover, client);
139+
client = array_replace(failover, client);
140140

141141
this
142142
->setOptions(connection, client)

0 commit comments

Comments
 (0)