php_oci8.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. #ifdef HAVE_OCI8
  26. # ifndef PHP_OCI8_H
  27. # define PHP_OCI8_H
  28. #ifdef ZTS
  29. # include "TSRM.h"
  30. #endif
  31. /*
  32. * The version of the OCI8 extension.
  33. */
  34. #ifdef PHP_OCI8_VERSION
  35. /* The definition of PHP_OCI8_VERSION changed in PHP 5.3 and building
  36. * this code with PHP 5.2 (e.g. when using OCI8 from PECL) will conflict.
  37. */
  38. #undef PHP_OCI8_VERSION
  39. #endif
  40. #define PHP_OCI8_VERSION "3.1.0"
  41. extern zend_module_entry oci8_module_entry;
  42. #define phpext_oci8_ptr &oci8_module_entry
  43. #define phpext_oci8_11g_ptr &oci8_module_entry
  44. #define phpext_oci8_12c_ptr &oci8_module_entry
  45. #define phpext_oci8_19_ptr &oci8_module_entry
  46. PHP_MINIT_FUNCTION(oci);
  47. PHP_RINIT_FUNCTION(oci);
  48. PHP_MSHUTDOWN_FUNCTION(oci);
  49. PHP_RSHUTDOWN_FUNCTION(oci);
  50. PHP_MINFO_FUNCTION(oci);
  51. # endif /* !PHP_OCI8_H */
  52. #else /* !HAVE_OCI8 */
  53. # define oci8_module_ptr NULL
  54. #endif /* HAVE_OCI8 */