1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 #ifndef PHP_ODBC_H
24 #define PHP_ODBC_H
25
26 #if HAVE_UODBC
27
28 #ifdef ZTS
29 #include "TSRM.h"
30 #endif
31
32 extern zend_module_entry odbc_module_entry;
33 #define odbc_module_ptr &odbc_module_entry
34
35 #if defined(HAVE_DBMAKER) || defined(PHP_WIN32) || defined(HAVE_IBMDB2) || defined(HAVE_UNIXODBC) || defined(HAVE_BIRDSTEP) || defined(HAVE_IODBC)
36 # define PHP_ODBC_HAVE_FETCH_HASH 1
37 #endif
38
39
40 PHP_MINIT_FUNCTION(odbc);
41 PHP_MSHUTDOWN_FUNCTION(odbc);
42 PHP_RINIT_FUNCTION(odbc);
43 PHP_RSHUTDOWN_FUNCTION(odbc);
44 PHP_MINFO_FUNCTION(odbc);
45
46 PHP_FUNCTION(odbc_error);
47 PHP_FUNCTION(odbc_errormsg);
48 PHP_FUNCTION(odbc_setoption);
49 PHP_FUNCTION(odbc_autocommit);
50 PHP_FUNCTION(odbc_close);
51 PHP_FUNCTION(odbc_close_all);
52 PHP_FUNCTION(odbc_commit);
53 PHP_FUNCTION(odbc_connect);
54 PHP_FUNCTION(odbc_pconnect);
55 PHP_FUNCTION(odbc_cursor);
56 #ifdef HAVE_SQLDATASOURCES
57 PHP_FUNCTION(odbc_data_source);
58 #endif
59 PHP_FUNCTION(odbc_do);
60 PHP_FUNCTION(odbc_exec);
61 PHP_FUNCTION(odbc_execute);
62 #ifdef PHP_ODBC_HAVE_FETCH_HASH
63 PHP_FUNCTION(odbc_fetch_array);
64 PHP_FUNCTION(odbc_fetch_object);
65 #endif
66 PHP_FUNCTION(odbc_fetch_into);
67 PHP_FUNCTION(odbc_fetch_row);
68 PHP_FUNCTION(odbc_field_len);
69 PHP_FUNCTION(odbc_field_scale);
70 PHP_FUNCTION(odbc_field_name);
71 PHP_FUNCTION(odbc_field_type);
72 PHP_FUNCTION(odbc_field_num);
73 PHP_FUNCTION(odbc_free_result);
74 #if !defined(HAVE_SOLID) && !defined(HAVE_SOLID_30)
75 PHP_FUNCTION(odbc_next_result);
76 #endif
77 PHP_FUNCTION(odbc_num_fields);
78 PHP_FUNCTION(odbc_num_rows);
79 PHP_FUNCTION(odbc_prepare);
80 PHP_FUNCTION(odbc_result);
81 PHP_FUNCTION(odbc_result_all);
82 PHP_FUNCTION(odbc_rollback);
83 PHP_FUNCTION(odbc_binmode);
84 PHP_FUNCTION(odbc_longreadlen);
85 PHP_FUNCTION(odbc_tables);
86 PHP_FUNCTION(odbc_columns);
87 #if !defined(HAVE_DBMAKER) && !defined(HAVE_SOLID) && !defined(HAVE_SOLID_35)
88 PHP_FUNCTION(odbc_columnprivileges);
89 PHP_FUNCTION(odbc_tableprivileges);
90 #endif
91 #if !defined(HAVE_SOLID) || !defined(HAVE_SOLID_35)
92 PHP_FUNCTION(odbc_foreignkeys);
93 PHP_FUNCTION(odbc_procedures);
94 PHP_FUNCTION(odbc_procedurecolumns);
95 #endif
96 PHP_FUNCTION(odbc_gettypeinfo);
97 PHP_FUNCTION(odbc_primarykeys);
98 PHP_FUNCTION(odbc_specialcolumns);
99 PHP_FUNCTION(odbc_statistics);
100
101 #else
102
103 #define odbc_module_ptr NULL
104
105 #endif
106
107 #define phpext_odbc_ptr odbc_module_ptr
108
109 #endif
110
111
112
113
114
115
116