internal_functions_win32.c 4.7 KB

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