Repository navigation
Expand file tree
/
Copy pathphp_interbase.h
More file actions
135 lines (114 loc) · 4.65 KB
/
Copy pathphp_interbase.h
File metadata and controls
135 lines (114 loc) · 4.65 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
/*
+----------------------------------------------------------------------+
| PHP Version 7, 8 |
+----------------------------------------------------------------------+
| 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: |
| http://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: Jouni Ahto <jouni.ahto@exdec.fi> |
| Andrew Avdeev <andy@simgts.mv.ru> |
| Ard Biesheuvel <a.k.biesheuvel@its.tudelft.nl> |
| Martin Koeditz <martin.koeditz@it-syn.de> |
| Jonatan Klemets <jonatan.r.klemets@gmail.com> |
| others |
+----------------------------------------------------------------------+
| You'll find history on Github |
| https://github.com/FirebirdSQL/php-firebird/commits/master |
+----------------------------------------------------------------------+
*/
#ifndef PHP_INTERBASE_H
#define PHP_INTERBASE_H
extern zend_module_entry ibase_module_entry;
#define phpext_interbase_ptr &ibase_module_entry
#include "ibase.h"
/* PHP 8.6 removed these macros */
#ifndef WRONG_PARAM_COUNT
# define WRONG_PARAM_COUNT { zend_wrong_param_count(); RETURN_THROWS(); }
#endif
#ifndef INI_STR
# define INI_STR(name) ((char *) zend_ini_string_literal(name))
# define INI_INT(name) zend_ini_long_literal(name)
# define INI_BOOL(name) zend_ini_bool_literal(name)
#endif
#define TO_STRING_(x) #x
#define TO_STRING(x) TO_STRING_(x)
#ifndef FB_API_VER
static_assert(false, "FATAL: FB_API_VER is not defined. Assumed very old, unsupported client library");
#endif
#define PHP_INTERBASE_VER_MAJOR 6
#define PHP_INTERBASE_VER_MINOR 1
#define PHP_INTERBASE_VER_REV 1
#define PHP_INTERBASE_VER_PRE "-RC5"
// Keep two digit style similar to FB_API_VER
#define PHP_INTERBASE_VER PHP_INTERBASE_VER_MAJOR * 10 + PHP_INTERBASE_VER_MINOR
#define PHP_INTERBASE_VER_STR \
TO_STRING(PHP_INTERBASE_VER_MAJOR) "." \
TO_STRING(PHP_INTERBASE_VER_MINOR) "." \
TO_STRING(PHP_INTERBASE_VER_REV) \
PHP_INTERBASE_VER_PRE
PHP_MINIT_FUNCTION(ibase);
PHP_RINIT_FUNCTION(ibase);
PHP_MSHUTDOWN_FUNCTION(ibase);
PHP_RSHUTDOWN_FUNCTION(ibase);
PHP_MINFO_FUNCTION(ibase);
PHP_FUNCTION(ibase_connect);
PHP_FUNCTION(ibase_pconnect);
PHP_FUNCTION(ibase_close);
PHP_FUNCTION(ibase_drop_db);
PHP_FUNCTION(ibase_query);
PHP_FUNCTION(ibase_fetch_row);
PHP_FUNCTION(ibase_fetch_assoc);
PHP_FUNCTION(ibase_fetch_object);
PHP_FUNCTION(ibase_free_result);
PHP_FUNCTION(ibase_name_result);
PHP_FUNCTION(ibase_prepare);
PHP_FUNCTION(ibase_execute);
PHP_FUNCTION(ibase_free_query);
PHP_FUNCTION(ibase_gen_id);
PHP_FUNCTION(ibase_num_fields);
PHP_FUNCTION(ibase_num_params);
PHP_FUNCTION(ibase_affected_rows);
PHP_FUNCTION(ibase_field_info);
PHP_FUNCTION(ibase_param_info);
PHP_FUNCTION(ibase_trans);
PHP_FUNCTION(ibase_commit);
PHP_FUNCTION(ibase_rollback);
PHP_FUNCTION(ibase_commit_ret);
PHP_FUNCTION(ibase_rollback_ret);
PHP_FUNCTION(ibase_blob_create);
PHP_FUNCTION(ibase_blob_add);
PHP_FUNCTION(ibase_blob_cancel);
PHP_FUNCTION(ibase_blob_open);
PHP_FUNCTION(ibase_blob_get);
PHP_FUNCTION(ibase_blob_close);
PHP_FUNCTION(ibase_blob_echo);
PHP_FUNCTION(ibase_blob_info);
PHP_FUNCTION(ibase_blob_import);
PHP_FUNCTION(ibase_add_user);
PHP_FUNCTION(ibase_modify_user);
PHP_FUNCTION(ibase_delete_user);
PHP_FUNCTION(ibase_service_attach);
PHP_FUNCTION(ibase_service_detach);
PHP_FUNCTION(ibase_backup);
PHP_FUNCTION(ibase_restore);
PHP_FUNCTION(ibase_maintain_db);
PHP_FUNCTION(ibase_db_info);
PHP_FUNCTION(ibase_server_info);
PHP_FUNCTION(ibase_errmsg);
PHP_FUNCTION(ibase_errcode);
PHP_FUNCTION(ibase_wait_event);
PHP_FUNCTION(ibase_set_event_handler);
PHP_FUNCTION(ibase_free_event_handler);
PHP_FUNCTION(ibase_get_client_version);
PHP_FUNCTION(ibase_get_client_major_version);
PHP_FUNCTION(ibase_get_client_minor_version);
#else
#define phpext_interbase_ptr NULL
#endif /* PHP_INTERBASE_H */