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