xref: /PHP-8.1/ext/oci8/php_oci8.h (revision 328a07da)
1 /*
2    +----------------------------------------------------------------------+
3    | Copyright (c) The PHP Group                                          |
4    +----------------------------------------------------------------------+
5    | This source file is subject to version 3.01 of the PHP license,      |
6    | that is bundled with this package in the file LICENSE, and is        |
7    | available through the world-wide-web at the following url:           |
8    | https://www.php.net/license/3_01.txt                                 |
9    | If you did not receive a copy of the PHP license and are unable to   |
10    | obtain it through the world-wide-web, please send a note to          |
11    | license@php.net so we can mail you a copy immediately.               |
12    +----------------------------------------------------------------------+
13    | Authors: Stig Sæther Bakken <ssb@php.net>                            |
14    |          Thies C. Arntzen <thies@thieso.net>                         |
15    |                                                                      |
16    | Collection support by Andy Sautins <asautins@veripost.net>           |
17    | Temporary LOB support by David Benson <dbenson@mancala.com>          |
18    | ZTS per process OCIPLogon by Harald Radi <harald.radi@nme.at>        |
19    |                                                                      |
20    | Redesigned by: Antony Dovgal <antony@zend.com>                       |
21    |                Andi Gutmans <andi@php.net>                           |
22    |                Wez Furlong <wez@omniti.com>                          |
23    +----------------------------------------------------------------------+
24 */
25 
26 #ifdef HAVE_OCI8
27 # ifndef PHP_OCI8_H
28 #  define PHP_OCI8_H
29 
30 #ifdef ZTS
31 # include "TSRM.h"
32 #endif
33 
34 
35 /*
36  * The version of the OCI8 extension.
37  */
38 #ifdef PHP_OCI8_VERSION
39 /* The definition of PHP_OCI8_VERSION changed in PHP 5.3 and building
40  * this code with PHP 5.2 (e.g. when using OCI8 from PECL) will conflict.
41  */
42 #undef PHP_OCI8_VERSION
43 #endif
44 #define PHP_OCI8_VERSION "3.1.0"
45 
46 extern zend_module_entry oci8_module_entry;
47 #define phpext_oci8_ptr &oci8_module_entry
48 #define phpext_oci8_11g_ptr &oci8_module_entry
49 #define phpext_oci8_12c_ptr &oci8_module_entry
50 #define phpext_oci8_19_ptr &oci8_module_entry
51 
52 
53 PHP_MINIT_FUNCTION(oci);
54 PHP_RINIT_FUNCTION(oci);
55 PHP_MSHUTDOWN_FUNCTION(oci);
56 PHP_RSHUTDOWN_FUNCTION(oci);
57 PHP_MINFO_FUNCTION(oci);
58 
59 # endif /* !PHP_OCI8_H */
60 #else /* !HAVE_OCI8 */
61 
62 # define oci8_module_ptr NULL
63 
64 #endif /* HAVE_OCI8 */
65