summaryrefslogtreecommitdiff
path: root/ext/mysqlnd/mysqlnd_structs.h
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2010-09-01 14:47:36 +0000
committerAndrey Hristov <andrey@php.net>2010-09-01 14:47:36 +0000
commit8220c2e4ce55c37369ab3681bd7fed4d9395ca70 (patch)
treef4b3995a4ab12462169ab8d021823453d7774e03 /ext/mysqlnd/mysqlnd_structs.h
parent13fd8fcded57c01d280fd0d9ddc2a2f2f414335e (diff)
downloadphp-git-8220c2e4ce55c37369ab3681bd7fed4d9395ca70.tar.gz
OPT_COMPRESS support for mysqlnd_conn::set_client_option
To be used by mysqli_options
Diffstat (limited to 'ext/mysqlnd/mysqlnd_structs.h')
-rw-r--r--ext/mysqlnd/mysqlnd_structs.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/ext/mysqlnd/mysqlnd_structs.h b/ext/mysqlnd/mysqlnd_structs.h
index 426a2067ed..e1e4cfcc3f 100644
--- a/ext/mysqlnd/mysqlnd_structs.h
+++ b/ext/mysqlnd/mysqlnd_structs.h
@@ -156,11 +156,18 @@ typedef struct st_mysqlnd_options
The ABI will be broken and the methods structure will be somewhere else
in the memory which can crash external code. Feel free to reuse these.
*/
- char * unused1;
+#if SIZEOF_CHAR_P == 4
+ uint32_t unused1;
+#elif SIZEOF_CHAR_P == 8
+ uint64_t unused1;
+#else
+#error Not supported platform
+#endif
char * unused2;
char * unused3;
char * unused4;
char * unused5;
+
enum_mysqlnd_protocol_type protocol;
char *charset_name;
@@ -190,6 +197,7 @@ typedef struct st_mysqlnd_net_options
char *ssl_cipher;
char *ssl_passphrase;
zend_bool ssl_verify_peer;
+ uint64_t flags;
} MYSQLND_NET_OPTIONS;