summaryrefslogtreecommitdiff
path: root/ext/mysqlnd/mysqlnd_wireprotocol.h
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2015-11-04 10:29:00 +0100
committerAndrey Hristov <andrey@php.net>2015-11-12 16:19:16 +0100
commitbaab519ae5bc545376cd59ff520ce28afa142d5d (patch)
tree96f05130355381bf0d8b4187b43bd4bc0dcf7050 /ext/mysqlnd/mysqlnd_wireprotocol.h
parent5abee1948eb71f9a0e163e3ce491b3e10ee0414e (diff)
downloadphp-git-baab519ae5bc545376cd59ff520ce28afa142d5d.tar.gz
MNDR:
- decouple the commands from the connection. CONN ist passed now only in 1 case
Diffstat (limited to 'ext/mysqlnd/mysqlnd_wireprotocol.h')
-rw-r--r--ext/mysqlnd/mysqlnd_wireprotocol.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/ext/mysqlnd/mysqlnd_wireprotocol.h b/ext/mysqlnd/mysqlnd_wireprotocol.h
index 2643ea5564..cace621d3f 100644
--- a/ext/mysqlnd/mysqlnd_wireprotocol.h
+++ b/ext/mysqlnd/mysqlnd_wireprotocol.h
@@ -59,10 +59,17 @@ typedef struct st_mysqlnd_packet_methods {
typedef struct st_mysqlnd_packet_header {
size_t size;
- mysqlnd_packet_methods *m;
- MYSQLND_PROTOCOL_PAYLOAD_DECODER_FACTORY * factory;
zend_uchar packet_no;
zend_bool persistent;
+
+ mysqlnd_packet_methods *m;
+
+ MYSQLND_CONN_DATA * conn;
+ MYSQLND_NET * net;
+ MYSQLND_ERROR_INFO * error_info;
+ MYSQLND_STATS * stats;
+ MYSQLND_PROTOCOL_PAYLOAD_DECODER_FACTORY * factory;
+ MYSQLND_CONNECTION_STATE * connection_state;
} MYSQLND_PACKET_HEADER;
/* Server greets the client */