internal_functions_win32.c 4.0 KB

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