php_odbc.h 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. /*
  2. +----------------------------------------------------------------------+
  3. | PHP Version 5 |
  4. +----------------------------------------------------------------------+
  5. | Copyright (c) 1997-2016 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: Stig Sæther Bakken <ssb@php.net> |
  16. | Andreas Karajannis <Andreas.Karajannis@gmd.de> |
  17. | Kevin N. Shallow <kshallow@tampabay.rr.com> (Birdstep) |
  18. +----------------------------------------------------------------------+
  19. */
  20. /* $Id$ */
  21. #ifndef PHP_ODBC_H
  22. #define PHP_ODBC_H
  23. #if HAVE_UODBC
  24. #ifdef ZTS
  25. #include "TSRM.h"
  26. #endif
  27. extern zend_module_entry odbc_module_entry;
  28. #define odbc_module_ptr &odbc_module_entry
  29. #if defined(HAVE_DBMAKER) || defined(PHP_WIN32) || defined(HAVE_IBMDB2) || defined(HAVE_UNIXODBC) || defined(HAVE_BIRDSTEP) || defined(HAVE_IODBC)
  30. # define PHP_ODBC_HAVE_FETCH_HASH 1
  31. #endif
  32. /* user functions */
  33. PHP_MINIT_FUNCTION(odbc);
  34. PHP_MSHUTDOWN_FUNCTION(odbc);
  35. PHP_RINIT_FUNCTION(odbc);
  36. PHP_RSHUTDOWN_FUNCTION(odbc);
  37. PHP_MINFO_FUNCTION(odbc);
  38. PHP_FUNCTION(odbc_error);
  39. PHP_FUNCTION(odbc_errormsg);
  40. PHP_FUNCTION(odbc_setoption);
  41. PHP_FUNCTION(odbc_autocommit);
  42. PHP_FUNCTION(odbc_close);
  43. PHP_FUNCTION(odbc_close_all);
  44. PHP_FUNCTION(odbc_commit);
  45. PHP_FUNCTION(odbc_connect);
  46. PHP_FUNCTION(odbc_pconnect);
  47. PHP_FUNCTION(odbc_cursor);
  48. #ifdef HAVE_SQLDATASOURCES
  49. PHP_FUNCTION(odbc_data_source);
  50. #endif
  51. PHP_FUNCTION(odbc_do);
  52. PHP_FUNCTION(odbc_exec);
  53. PHP_FUNCTION(odbc_execute);
  54. #ifdef PHP_ODBC_HAVE_FETCH_HASH
  55. PHP_FUNCTION(odbc_fetch_array);
  56. PHP_FUNCTION(odbc_fetch_object);
  57. #endif
  58. PHP_FUNCTION(odbc_fetch_into);
  59. PHP_FUNCTION(odbc_fetch_row);
  60. PHP_FUNCTION(odbc_field_len);
  61. PHP_FUNCTION(odbc_field_scale);
  62. PHP_FUNCTION(odbc_field_name);
  63. PHP_FUNCTION(odbc_field_type);
  64. PHP_FUNCTION(odbc_field_num);
  65. PHP_FUNCTION(odbc_free_result);
  66. #if !defined(HAVE_SOLID) && !defined(HAVE_SOLID_30)
  67. PHP_FUNCTION(odbc_next_result);
  68. #endif
  69. PHP_FUNCTION(odbc_num_fields);
  70. PHP_FUNCTION(odbc_num_rows);
  71. PHP_FUNCTION(odbc_prepare);
  72. PHP_FUNCTION(odbc_result);
  73. PHP_FUNCTION(odbc_result_all);
  74. PHP_FUNCTION(odbc_rollback);
  75. PHP_FUNCTION(odbc_binmode);
  76. PHP_FUNCTION(odbc_longreadlen);
  77. PHP_FUNCTION(odbc_tables);
  78. PHP_FUNCTION(odbc_columns);
  79. #if !defined(HAVE_DBMAKER) && !defined(HAVE_SOLID) && !defined(HAVE_SOLID_35) /* not supported now */
  80. PHP_FUNCTION(odbc_columnprivileges);
  81. PHP_FUNCTION(odbc_tableprivileges);
  82. #endif
  83. #if !defined(HAVE_SOLID) || !defined(HAVE_SOLID_35) /* not supported */
  84. PHP_FUNCTION(odbc_foreignkeys);
  85. PHP_FUNCTION(odbc_procedures);
  86. PHP_FUNCTION(odbc_procedurecolumns);
  87. #endif
  88. PHP_FUNCTION(odbc_gettypeinfo);
  89. PHP_FUNCTION(odbc_primarykeys);
  90. PHP_FUNCTION(odbc_specialcolumns);
  91. PHP_FUNCTION(odbc_statistics);
  92. #else
  93. #define odbc_module_ptr NULL
  94. #endif /* HAVE_UODBC */
  95. #define phpext_odbc_ptr odbc_module_ptr
  96. #endif /* PHP_ODBC_H */
  97. /*
  98. * Local variables:
  99. * tab-width: 4
  100. * c-basic-offset: 4
  101. * End:
  102. */