xref: /PHP-5.6/main/internal_functions_nw.c (revision 49493a2d)
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    | Modified for NetWare: Novell, Inc.                                   |
18    +----------------------------------------------------------------------+
19  */
20 
21 /* $Id$ */
22 
23 /* {{{ includes
24  */
25 #include "php.h"
26 #include "php_main.h"
27 #include "zend_modules.h"
28 #include "zend_compile.h"
29 #include <stdarg.h>
30 #include <stdlib.h>
31 #include <stdio.h>
32 
33 #include "ext/bcmath/php_bcmath.h"
34 #include "ext/gd/php_gd.h"
35 #include "ext/standard/dl.h"
36 #include "ext/standard/file.h"
37 #include "ext/standard/fsock.h"
38 #include "ext/standard/head.h"
39 #include "ext/standard/pack.h"
40 #include "ext/standard/php_browscap.h"
41 /*#include "ext/standard/php_crypt.h"*/
42 #include "ext/standard/php_dir.h"
43 #include "ext/standard/php_filestat.h"
44 #include "ext/standard/php_mail.h"
45 /*#include "ext/standard/php_ext_syslog.h"*/
46 #include "ext/standard/php_standard.h"
47 #include "ext/standard/php_lcg.h"
48 #include "ext/standard/php_array.h"
49 #include "ext/standard/php_assert.h"
50 #include "ext/calendar/php_calendar.h"
51 /*#include "ext/com/php_COM.h"
52 #include "ext/com/php_VARIANT.h"*/
53 #include "ext/ftp/php_ftp.h"
54 #include "ext/standard/reg.h"
55 #include "ext/pcre/php_pcre.h"
56 /*#include "ext/odbc/php_odbc.h"*/	/* Commented out for now */
57 #include "ext/session/php_session.h"
58 /*#include "ext/xml/php_xml.h"
59 #include "ext/wddx/php_wddx.h"
60 #include "ext/mysql/php_mysql.h"*/	/* Commented out for now */
61 /* }}} */
62 
63 /* {{{ php_builtin_extensions[]
64  */
65 static zend_module_entry *php_builtin_extensions[] = {
66 	phpext_standard_ptr,
67 #if HAVE_BCMATH
68 	phpext_bcmath_ptr,
69 #endif
70 	phpext_calendar_ptr,
71 /*	COM_module_ptr,*/
72 	phpext_ftp_ptr,
73 #if defined(MBSTR_ENC_TRANS)
74 	phpext_mbstring_ptr,
75 #endif
76 /*	phpext_mysql_ptr,*/	/* Commented out for now */
77 /*	phpext_odbc_ptr, */	/* Commented out for now */
78 	phpext_pcre_ptr,
79 	phpext_session_ptr,
80 /*	phpext_xml_ptr,
81 	phpext_wddx_ptr */	/* Commented out for now */
82 };
83 /* }}} */
84 
85 #define EXTCOUNT (sizeof(php_builtin_extensions)/sizeof(zend_module_entry *))
86 
php_register_internal_extensions(TSRMLS_D)87 PHPAPI int php_register_internal_extensions(TSRMLS_D)
88 {
89 	return php_register_extensions(php_builtin_extensions, EXTCOUNT TSRMLS_CC);
90 }
91 
92 
93 /*
94  * Local variables:
95  * tab-width: 4
96  * c-basic-offset: 4
97  * End:
98  * vim600: sw=4 ts=4 fdm=marker
99  * vim<600: sw=4 ts=4
100  */
101