diff options
author | Andrey Hristov <andrey@php.net> | 2008-02-14 12:49:30 +0000 |
---|---|---|
committer | Andrey Hristov <andrey@php.net> | 2008-02-14 12:49:30 +0000 |
commit | 2d9d22395f1b26d2408fbf39c5c54e28c8619163 (patch) | |
tree | 26e387b6257c34951636e184a47a03f1871b41f0 /ext/mysqlnd/mysqlnd_wireprotocol.h | |
parent | 786746cb07c9830d0b690b231678c5f01c362ba6 (diff) | |
download | php-git-2d9d22395f1b26d2408fbf39c5c54e28c8619163.tar.gz |
Update mysqlnd - fix bg_store
Diffstat (limited to 'ext/mysqlnd/mysqlnd_wireprotocol.h')
-rw-r--r-- | ext/mysqlnd/mysqlnd_wireprotocol.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/ext/mysqlnd/mysqlnd_wireprotocol.h b/ext/mysqlnd/mysqlnd_wireprotocol.h index 7d3fe83ab3..ca2a4640e3 100644 --- a/ext/mysqlnd/mysqlnd_wireprotocol.h +++ b/ext/mysqlnd/mysqlnd_wireprotocol.h @@ -37,10 +37,11 @@ extern char * mysqlnd_read_body_name; /* Packet handling */ -#define PACKET_INIT(packet, enum_type, c_type) \ +#define PACKET_INIT(packet, enum_type, c_type, pers) \ { \ - packet = (c_type) ecalloc(1, packet_methods[enum_type].struct_size); \ - ((c_type) (packet))->header.m = &packet_methods[enum_type]; \ + packet = (c_type) pecalloc(1, packet_methods[(enum_type)].struct_size, (pers)); \ + ((c_type) (packet))->header.m = &packet_methods[(enum_type)]; \ + ((c_type) (packet))->header.persistent = (pers); \ } #define PACKET_WRITE(packet, conn) ((packet)->header.m->write_to_net((packet), (conn) TSRMLS_CC)) #define PACKET_READ(packet, conn) ((packet)->header.m->read_from_net((packet), (conn) TSRMLS_CC)) @@ -126,8 +127,9 @@ extern mysqlnd_packet_methods packet_methods[]; typedef struct st_mysqlnd_packet_header { size_t size; - zend_uchar packet_no; mysqlnd_packet_methods *m; + zend_uchar packet_no; + zend_bool persistent; } mysqlnd_packet_header; /* Server greets the client */ |