internal_functions_win32.c 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. /*
  2. +----------------------------------------------------------------------+
  3. | PHP Version 7 |
  4. +----------------------------------------------------------------------+
  5. | Copyright (c) 1997-2018 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: Andi Gutmans <andi@php.net> |
  16. | Zeev Suraski <zeev@php.net> |
  17. +----------------------------------------------------------------------+
  18. */
  19. /* {{{ includes
  20. */
  21. #include "php.h"
  22. #include "php_main.h"
  23. #include "zend_modules.h"
  24. #include "zend_compile.h"
  25. #include <stdarg.h>
  26. #include <stdlib.h>
  27. #include <stdio.h>
  28. #include "ext/standard/dl.h"
  29. #include "ext/standard/file.h"
  30. #include "ext/standard/fsock.h"
  31. #include "ext/standard/head.h"
  32. #include "ext/standard/pack.h"
  33. #include "ext/standard/php_browscap.h"
  34. #include "ext/standard/php_crypt.h"
  35. #include "ext/standard/php_dir.h"
  36. #include "ext/standard/php_filestat.h"
  37. #include "ext/standard/php_mail.h"
  38. #include "ext/standard/php_ext_syslog.h"
  39. #include "ext/standard/php_standard.h"
  40. #include "ext/standard/php_lcg.h"
  41. #include "ext/standard/php_array.h"
  42. #include "ext/standard/php_assert.h"
  43. #include "ext/reflection/php_reflection.h"
  44. #if HAVE_BCMATH
  45. #include "ext/bcmath/php_bcmath.h"
  46. #endif
  47. #if HAVE_CALENDAR
  48. #include "ext/calendar/php_calendar.h"
  49. #endif
  50. #if HAVE_CTYPE
  51. #include "ext/ctype/php_ctype.h"
  52. #endif
  53. #if HAVE_DATE
  54. #include "ext/date/php_date.h"
  55. #endif
  56. #if HAVE_FTP
  57. #include "ext/ftp/php_ftp.h"
  58. #endif
  59. #if HAVE_ICONV
  60. #include "ext/iconv/php_iconv.h"
  61. #endif
  62. #include "ext/standard/reg.h"
  63. #if HAVE_PCRE || HAVE_BUNDLED_PCRE
  64. #include "ext/pcre/php_pcre.h"
  65. #endif
  66. #if HAVE_UODBC
  67. #include "ext/odbc/php_odbc.h"
  68. #endif
  69. #if HAVE_PHP_SESSION
  70. #include "ext/session/php_session.h"
  71. #endif
  72. #if HAVE_MBSTRING
  73. #include "ext/mbstring/mbstring.h"
  74. #endif
  75. #if HAVE_TOKENIZER
  76. #include "ext/tokenizer/php_tokenizer.h"
  77. #endif
  78. #if HAVE_ZLIB
  79. #include "ext/zlib/php_zlib.h"
  80. #endif
  81. #if HAVE_LIBXML
  82. #include "ext/libxml/php_libxml.h"
  83. #if HAVE_DOM
  84. #include "ext/dom/php_dom.h"
  85. #endif
  86. #if HAVE_SIMPLEXML
  87. #include "ext/simplexml/php_simplexml.h"
  88. #endif
  89. #endif
  90. #if HAVE_XML
  91. #include "ext/xml/php_xml.h"
  92. #endif
  93. #if HAVE_XML && HAVE_WDDX
  94. #include "ext/wddx/php_wddx.h"
  95. #endif
  96. #include "ext/com_dotnet/php_com_dotnet.h"
  97. #ifdef HAVE_SPL
  98. #include "ext/spl/php_spl.h"
  99. #endif
  100. #if HAVE_XML && HAVE_XMLREADER
  101. #include "ext/xmlreader/php_xmlreader.h"
  102. #endif
  103. #if HAVE_XML && HAVE_XMLWRITER
  104. #include "ext/xmlwriter/php_xmlwriter.h"
  105. #endif
  106. /* }}} */
  107. /* {{{ php_builtin_extensions[]
  108. */
  109. static zend_module_entry * const php_builtin_extensions[] = {
  110. phpext_standard_ptr
  111. #if HAVE_BCMATH
  112. ,phpext_bcmath_ptr
  113. #endif
  114. #if HAVE_CALENDAR
  115. ,phpext_calendar_ptr
  116. #endif
  117. ,phpext_com_dotnet_ptr
  118. #if HAVE_CTYPE
  119. ,phpext_ctype_ptr
  120. #endif
  121. #if HAVE_DATE
  122. ,phpext_date_ptr
  123. #endif
  124. #if HAVE_FTP
  125. ,phpext_ftp_ptr
  126. #endif
  127. #if HAVE_HASH
  128. ,phpext_hash_ptr
  129. #endif
  130. #if HAVE_ICONV
  131. ,phpext_iconv_ptr
  132. #endif
  133. #if HAVE_MBSTRING
  134. ,phpext_mbstring_ptr
  135. #endif
  136. #if HAVE_UODBC
  137. ,phpext_odbc_ptr
  138. #endif
  139. #if HAVE_PCRE || HAVE_BUNDLED_PCRE
  140. ,phpext_pcre_ptr
  141. #endif
  142. ,phpext_reflection_ptr
  143. #if HAVE_PHP_SESSION
  144. ,phpext_session_ptr
  145. #endif
  146. #if HAVE_TOKENIZER
  147. ,phpext_tokenizer_ptr
  148. #endif
  149. #if HAVE_ZLIB
  150. ,phpext_zlib_ptr
  151. #endif
  152. #if HAVE_LIBXML
  153. ,phpext_libxml_ptr
  154. #if HAVE_DOM
  155. ,phpext_dom_ptr
  156. #endif
  157. #if HAVE_SIMPLEXML
  158. ,phpext_simplexml_ptr
  159. #endif
  160. #endif
  161. #if HAVE_XML
  162. ,phpext_xml_ptr
  163. #endif
  164. #if HAVE_XML && HAVE_WDDX
  165. ,phpext_wddx_ptr
  166. #endif
  167. #if HAVE_SPL
  168. ,phpext_spl_ptr
  169. #endif
  170. #if HAVE_XML && HAVE_XMLREADER
  171. ,phpext_xmlreader_ptr
  172. #endif
  173. #if HAVE_XML && HAVE_XMLWRITER
  174. ,phpext_xmlwriter_ptr
  175. #endif
  176. };
  177. /* }}} */
  178. #define EXTCOUNT (sizeof(php_builtin_extensions)/sizeof(zend_module_entry *))
  179. PHPAPI int php_register_internal_extensions(void)
  180. {
  181. return php_register_extensions(php_builtin_extensions, EXTCOUNT);
  182. }
  183. /*
  184. * Local variables:
  185. * tab-width: 4
  186. * c-basic-offset: 4
  187. * End:
  188. * vim600: sw=4 ts=4 fdm=marker
  189. * vim<600: sw=4 ts=4
  190. */