php_sqlite3.h 1.6 KB

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