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 * The version of the OCI8 extension. 36 */ 37 #ifdef PHP_OCI8_VERSION 38 /* The definition of PHP_OCI8_VERSION changed in PHP 5.3 and building 39 * this code with PHP 5.2 (e.g. when using OCI8 from PECL) will conflict. 40 */ 41 #undef PHP_OCI8_VERSION 42 #endif 43 #define PHP_OCI8_VERSION "3.3.0" 44 45 extern zend_module_entry oci8_module_entry; 46 #define phpext_oci8_ptr &oci8_module_entry 47 #define phpext_oci8_11g_ptr &oci8_module_entry 48 #define phpext_oci8_12c_ptr &oci8_module_entry 49 #define phpext_oci8_19_ptr &oci8_module_entry 50 51 52 PHP_MINIT_FUNCTION(oci); 53 PHP_RINIT_FUNCTION(oci); 54 PHP_MSHUTDOWN_FUNCTION(oci); 55 PHP_RSHUTDOWN_FUNCTION(oci); 56 PHP_MINFO_FUNCTION(oci); 57 58 # endif /* !PHP_OCI8_H */ 59 #else /* !HAVE_OCI8 */ 60 61 # define oci8_module_ptr NULL 62 63 #endif /* HAVE_OCI8 */ 64