summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2015-11-10 13:02:26 +0100
committerAndrey Hristov <andrey@php.net>2015-11-12 16:19:16 +0100
commit3f0a542d047f023ef6575a8cbd3e9edad64a040e (patch)
tree5323bff18ec2623763a4a8d9b2fdbc31f21bf8a8
parent2cea04165ca4b40d091554a01c4a6f922896ef9b (diff)
downloadphp-git-3f0a542d047f023ef6575a8cbd3e9edad64a040e.tar.gz
MNDR:
- route the option to the right handler
-rw-r--r--ext/mysqlnd/mysqlnd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mysqlnd/mysqlnd.c b/ext/mysqlnd/mysqlnd.c
index 9e627782bc..65b69c8507 100644
--- a/ext/mysqlnd/mysqlnd.c
+++ b/ext/mysqlnd/mysqlnd.c
@@ -2104,7 +2104,6 @@ MYSQLND_METHOD(mysqlnd_conn_data, set_client_option)(MYSQLND_CONN_DATA * const c
goto end;
}
switch (option) {
- case MYSQL_OPT_COMPRESS:
#ifdef WHEN_SUPPORTED_BY_MYSQLI
case MYSQL_OPT_READ_TIMEOUT:
case MYSQL_OPT_WRITE_TIMEOUT:
@@ -2120,6 +2119,7 @@ MYSQLND_METHOD(mysqlnd_conn_data, set_client_option)(MYSQLND_CONN_DATA * const c
case MYSQLND_OPT_NET_READ_BUFFER_SIZE:
ret = conn->vio->data->m.set_client_option(conn->vio, option, value);
break;
+ case MYSQL_OPT_COMPRESS:
case MYSQL_SERVER_PUBLIC_KEY:
ret = conn->protocol_frame_codec->data->m.set_client_option(conn->protocol_frame_codec, option, value);
break;