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 | http://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: Scott MacVicar <scottmac@php.net> | 14 +----------------------------------------------------------------------+ 15 */ 16 17 #ifndef PHP_SQLITE3_H 18 #define PHP_SQLITE3_H 19 20 #define PHP_SQLITE3_VERSION PHP_VERSION 21 22 extern zend_module_entry sqlite3_module_entry; 23 #define phpext_sqlite3_ptr &sqlite3_module_entry 24 25 ZEND_BEGIN_MODULE_GLOBALS(sqlite3) 26 char *extension_dir; 27 int dbconfig_defensive; 28 ZEND_END_MODULE_GLOBALS(sqlite3) 29 30 #if defined(ZTS) && defined(COMPILE_DL_SQLITE3) 31 ZEND_TSRMLS_CACHE_EXTERN() 32 #endif 33 34 ZEND_EXTERN_MODULE_GLOBALS(sqlite3) 35 #define SQLITE3G(v) ZEND_MODULE_GLOBALS_ACCESSOR(sqlite3, v) 36 37 #define PHP_SQLITE3_ASSOC 1<<0 38 #define PHP_SQLITE3_NUM 1<<1 39 #define PHP_SQLITE3_BOTH (PHP_SQLITE3_ASSOC|PHP_SQLITE3_NUM) 40 41 #endif 42