1999-09-05 13:01:42 +00:00
|
|
|
/*
|
|
|
|
+----------------------------------------------------------------------+
|
2019-01-30 09:03:12 +00:00
|
|
|
| Copyright (c) The PHP Group |
|
1999-09-05 13:01:42 +00:00
|
|
|
+----------------------------------------------------------------------+
|
2006-01-01 12:51:34 +00:00
|
|
|
| This source file is subject to version 3.01 of the PHP license, |
|
2000-07-24 01:40:02 +00:00
|
|
|
| that is bundled with this package in the file LICENSE, and is |
|
2003-06-10 20:04:29 +00:00
|
|
|
| available through the world-wide-web at the following url: |
|
2021-05-06 10:16:35 +00:00
|
|
|
| https://www.php.net/license/3_01.txt |
|
2000-07-24 01:40:02 +00:00
|
|
|
| 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. |
|
1999-09-05 13:01:42 +00:00
|
|
|
+----------------------------------------------------------------------+
|
2017-01-02 15:30:12 +00:00
|
|
|
| Authors: Stig Sæther Bakken <ssb@php.net> |
|
1999-09-05 13:01:42 +00:00
|
|
|
| Andreas Karajannis <Andreas.Karajannis@gmd.de> |
|
2017-07-19 08:19:32 +00:00
|
|
|
| Kevin N. Shallow <kshallow@tampabay.rr.com> |
|
1999-09-05 13:01:42 +00:00
|
|
|
+----------------------------------------------------------------------+
|
2000-07-24 01:40:02 +00:00
|
|
|
*/
|
1999-09-05 13:01:42 +00:00
|
|
|
|
2000-07-02 23:46:51 +00:00
|
|
|
#ifndef PHP_ODBC_H
|
|
|
|
#define PHP_ODBC_H
|
1999-09-05 13:01:42 +00:00
|
|
|
|
2020-05-20 11:59:50 +00:00
|
|
|
#ifdef HAVE_UODBC
|
2002-06-14 00:07:16 +00:00
|
|
|
|
1999-10-07 18:49:41 +00:00
|
|
|
#ifdef ZTS
|
|
|
|
#include "TSRM.h"
|
|
|
|
#endif
|
|
|
|
|
1999-12-17 20:55:31 +00:00
|
|
|
extern zend_module_entry odbc_module_entry;
|
1999-09-05 13:01:42 +00:00
|
|
|
#define odbc_module_ptr &odbc_module_entry
|
|
|
|
|
2015-03-23 19:54:55 +00:00
|
|
|
#include "php_version.h"
|
|
|
|
#define PHP_ODBC_VERSION PHP_VERSION
|
|
|
|
|
2017-07-19 08:19:32 +00:00
|
|
|
#if defined(HAVE_DBMAKER) || defined(PHP_WIN32) || defined(HAVE_IBMDB2) || defined(HAVE_UNIXODBC) || defined(HAVE_IODBC)
|
2003-04-30 10:45:45 +00:00
|
|
|
# define PHP_ODBC_HAVE_FETCH_HASH 1
|
|
|
|
#endif
|
|
|
|
|
1999-09-05 13:01:42 +00:00
|
|
|
/* user functions */
|
2001-07-30 01:56:43 +00:00
|
|
|
PHP_MINIT_FUNCTION(odbc);
|
|
|
|
PHP_MSHUTDOWN_FUNCTION(odbc);
|
|
|
|
PHP_RINIT_FUNCTION(odbc);
|
|
|
|
PHP_RSHUTDOWN_FUNCTION(odbc);
|
1999-09-05 13:01:42 +00:00
|
|
|
PHP_MINFO_FUNCTION(odbc);
|
|
|
|
|
2015-08-02 11:05:10 +00:00
|
|
|
#ifdef PHP_WIN32
|
|
|
|
# define PHP_ODBC_API __declspec(dllexport)
|
|
|
|
#elif defined(__GNUC__) && __GNUC__ >= 4
|
|
|
|
# define PHP_ODBC_API __attribute__ ((visibility("default")))
|
|
|
|
#else
|
|
|
|
# define PHP_ODBC_API
|
|
|
|
#endif
|
|
|
|
|
1999-09-05 13:01:42 +00:00
|
|
|
#else
|
|
|
|
|
2002-06-14 00:07:16 +00:00
|
|
|
#define odbc_module_ptr NULL
|
1999-09-05 13:01:42 +00:00
|
|
|
|
|
|
|
#endif /* HAVE_UODBC */
|
|
|
|
|
|
|
|
#define phpext_odbc_ptr odbc_module_ptr
|
|
|
|
|
2000-07-02 23:46:51 +00:00
|
|
|
#endif /* PHP_ODBC_H */
|