- Notifications
You must be signed in to change notification settings - Fork 7.8k
/
Copy pathmysqlnd_ps.h
40 lines (32 loc) · 1.89 KB
/
mysqlnd_ps.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
+----------------------------------------------------------------------+
| Copyright (c) The PHP Group |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| https://www.php.net/license/3_01.txt |
| If you did not receive a copy of the PHP license and are unable to |
| obtain it through the world-wide-web, please send a note to |
| license@php.net so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Authors: Andrey Hristov <andrey@php.net> |
| Ulf Wendel <uw@php.net> |
+----------------------------------------------------------------------+
*/
#ifndefMYSQLND_PS_H
#defineMYSQLND_PS_H
/* PS stuff */
typedefvoid (*ps_field_fetch_func)(zval*zv, constMYSQLND_FIELD*constfield, constunsigned intpack_len, constzend_uchar**row);
structst_mysqlnd_perm_bind {
ps_field_fetch_funcfunc;
/* should be signed int */
intpack_len;
unsigned intphp_type;
};
externstructst_mysqlnd_perm_bindmysqlnd_ps_fetch_functions[MYSQL_TYPE_LAST+1];
enum_func_statusmysqlnd_fetch_stmt_row_cursor(MYSQLND_RES*result, zval**row_data, constunsigned intflags, bool*fetched_anything);
void_mysqlnd_init_ps_subsystem(void);/* This one is private, mysqlnd_library_init() will call it */
void_mysqlnd_init_ps_fetch_subsystem(void);
voidps_fetch_from_1_to_8_bytes(zval*zv, constMYSQLND_FIELD*constfield, constunsigned intpack_len, constzend_uchar**row, unsigned intbyte_count);
#endif/* MYSQLND_PS_H */