xref: /PHP-7.4/ext/sqlite3/php_sqlite3.h (revision f1b306fe)
1 /*
2    +----------------------------------------------------------------------+
3    | PHP Version 7                                                        |
4    +----------------------------------------------------------------------+
5    | Copyright (c) The PHP Group                                          |
6    +----------------------------------------------------------------------+
7    | This source file is subject to version 3.01 of the PHP license,      |
8    | that is bundled with this package in the file LICENSE, and is        |
9    | available through the world-wide-web at the following url:           |
10    | http://www.php.net/license/3_01.txt                                  |
11    | If you did not receive a copy of the PHP license and are unable to   |
12    | obtain it through the world-wide-web, please send a note to          |
13    | license@php.net so we can mail you a copy immediately.               |
14    +----------------------------------------------------------------------+
15    | Authors: Scott MacVicar <scottmac@php.net>                           |
16    +----------------------------------------------------------------------+
17 */
18 
19 #ifndef PHP_SQLITE3_H
20 #define PHP_SQLITE3_H
21 
22 #define PHP_SQLITE3_VERSION	PHP_VERSION
23 
24 extern zend_module_entry sqlite3_module_entry;
25 #define phpext_sqlite3_ptr &sqlite3_module_entry
26 
27 ZEND_BEGIN_MODULE_GLOBALS(sqlite3)
28 	char *extension_dir;
29 	int dbconfig_defensive;
30 ZEND_END_MODULE_GLOBALS(sqlite3)
31 
32 #if defined(ZTS) && defined(COMPILE_DL_SQLITE3)
33 ZEND_TSRMLS_CACHE_EXTERN()
34 #endif
35 
36 ZEND_EXTERN_MODULE_GLOBALS(sqlite3)
37 #define SQLITE3G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlite3, v)
38 
39 #define PHP_SQLITE3_ASSOC	1<<0
40 #define PHP_SQLITE3_NUM		1<<1
41 #define PHP_SQLITE3_BOTH	(PHP_SQLITE3_ASSOC|PHP_SQLITE3_NUM)
42 
43 #endif
44